32 references to IsSupported
System.Windows.Forms (11)
System\Windows\Forms\Application.cs (1)
555
=> ComCtlSupportsVisualStyles && VisualStyleRenderer.
IsSupported
;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
24
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\Controls\ProgressBar\ProgressBarRenderer.cs (1)
22
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1330
internal bool IsExplorerTreeSupported => OwnerGrid.CanShowVisualStyleGlyphs && VisualStyleRenderer.
IsSupported
;
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (1)
22
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
23
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\Controls\ToolStrips\ProfessionalColors.cs (1)
217
if (VisualStyleRenderer.
IsSupported
)
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (1)
23
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (1)
22
public static bool IsSupported => VisualStyleRenderer.
IsSupported
; // no downlevel support
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
87
if (!
IsSupported
)
173
=> !
IsSupported
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
46
if (Item is ToolStripComboBox && VisualStyles.VisualStyleRenderer.
IsSupported
)
System.Windows.Forms.Tests (20)
System\Windows\Forms\DataGridViewHeaderCellTests.cs (16)
3845
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
3848
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
3851
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
3854
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
3857
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
3860
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles };
4004
ButtonState expected = VisualStyleRenderer.
IsSupported
? ButtonState.Pushed : ButtonState.Normal;
4040
Assert.Equal(enableHeadersVisualStyles && VisualStyleRenderer.
IsSupported
, cell.MouseLeaveUnsharesRow(rowIndex));
4141
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4144
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, -1, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4147
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(-1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4150
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(0, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4153
yield return new object[] { enableHeadersVisualStyles, new DataGridViewCellMouseEventArgs(1, 0, 0, 0, new MouseEventArgs(MouseButtons.Left, 0, 0, 0, 0)), VisualStyleRenderer.
IsSupported
&& enableHeadersVisualStyles ? ButtonState.Pushed : ButtonState.Normal };
4215
Assert.Equal(VisualStyleRenderer.
IsSupported
? ButtonState.Pushed : ButtonState.Normal, cell.ButtonState);
4520
ButtonState expectedButtonState1 = enableHeadersVisualStyles && VisualStyleRenderer.
IsSupported
? ButtonState.Pushed : ButtonState.Normal;
4521
ButtonState expectedButtonState2 = enableHeadersVisualStyles && VisualStyleRenderer.
IsSupported
? ButtonState.Normal : expectedButtonState1;
System\Windows\Forms\ProgressBarRendererTest.cs (1)
14
bool expectedValue = VisualStyleRenderer.
IsSupported
;
System\Windows\Forms\TrackBarRendererTests.cs (1)
32
isSupported.Should().Be(VisualStyleRenderer.
IsSupported
);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (2)
86
bool result = VisualStyleRenderer.
IsSupported
;
88
Assert.Equal(result, VisualStyleRenderer.
IsSupported
);