85 references to Appearance
System.Windows.Forms (36)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (3)
24if (Appearance == Appearance.Button) 41private Appearance Appearance 56return Appearance.Normal;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (3)
14if (Control.Appearance == Appearance.Button) 33if (Control.Appearance == Appearance.Button) 52if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (3)
17if (Control.Appearance == Appearance.Button) 52if (Control.Appearance == Appearance.Button) 95if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (4)
17if (Control.Appearance == Appearance.Button) 66if (Control.Appearance == Appearance.Button) 78if (Control.Appearance == Appearance.Button) 90if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (3)
14if (Control.Appearance == Appearance.Button) 34if (Control.Appearance == Appearance.Button) 54if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (3)
12if (Control.Appearance == Appearance.Button) 41if (Control.Appearance == Appearance.Button) 66if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (3)
12if (Control.Appearance == Appearance.Button) 31if (Control.Appearance == Appearance.Button) 43if (Control.Appearance == Appearance.Button)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (7)
30private Appearance _appearance; 57[DefaultValue(Appearance.Normal)] 61public Appearance Appearance 234if (Appearance == Appearance.Button) 272if (Appearance == Appearance.Button) 296if (Appearance == Appearance.Button) 317if (Appearance == Appearance.Button || FlatStyle == FlatStyle.System)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (7)
34private Appearance _appearance = Appearance.Normal; 76[DefaultValue(Appearance.Normal)] 80public Appearance Appearance 202if (Appearance == Appearance.Button) 270if (Appearance == Appearance.Button) 287Appearance == Appearance.Button || FlatStyle == FlatStyle.System
System.Windows.Forms.Design (18)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (9)
117_topLeft.Appearance = Appearance.Button; 123_topCenter.Appearance = Appearance.Button; 129_topRight.Appearance = Appearance.Button; 135_middleLeft.Appearance = Appearance.Button; 141_middleCenter.Appearance = Appearance.Button; 147_middleRight.Appearance = Appearance.Button; 153_bottomLeft.Appearance = Appearance.Button; 159_bottomCenter.Appearance = Appearance.Button; 165_bottomRight.Appearance = Appearance.Button;
System\Windows\Forms\Design\ButtonBaseDesigner.cs (3)
71Appearance appearance = Appearance.Normal; 78if (appearance == Appearance.Normal)
System\Windows\Forms\Design\DockEditor.DockUI.cs (6)
49Appearance = Appearance.Button, 61Appearance = Appearance.Button, 72Appearance = Appearance.Button, 83Appearance = Appearance.Button, 94Appearance = Appearance.Button, 105Appearance = Appearance.Button,
System.Windows.Forms.Tests (29)
System\Windows\Forms\AbstractButtonBaseTests.cs (3)
48protected virtual void ButtonBase_OverChangeRectangle_Get(Appearance appearance, FlatStyle flatStyle) 63if (appearance == Appearance.Normal 83if (control.Appearance == Appearance.Button)
System\Windows\Forms\CheckBoxTests.cs (16)
25Assert.Equal(Appearance.Normal, control.Appearance); 147[EnumData<Appearance>] 148public void CheckBox_Appearance_Set_GetReturnsExpected(Appearance value) 164[InvalidEnumData<Appearance>] 165public void CheckBox_Appearance_SetInvalidValue_ThrowsInvalidEnumArgumentException(Appearance value) 776yield return new object[] { Appearance.Button, FlatStyle.Standard }; 777yield return new object[] { Appearance.Button, FlatStyle.Flat }; 778yield return new object[] { Appearance.Button, FlatStyle.Popup }; 779yield return new object[] { Appearance.Button, FlatStyle.System }; 780yield return new object[] { Appearance.Normal, FlatStyle.Standard }; 781yield return new object[] { Appearance.Normal, FlatStyle.Flat }; 782yield return new object[] { Appearance.Normal, FlatStyle.Popup }; 783yield return new object[] { Appearance.Normal, FlatStyle.System }; 788public void CheckBox_OverChangeRectangle_Get(Appearance appearance, FlatStyle flatStyle) => base.ButtonBase_OverChangeRectangle_Get(appearance, flatStyle); 792public void CheckBox_DownChangeRectangle_ReturnsExpectedRectangle(Appearance appearance, FlatStyle flatStyle) 800if (appearance == Appearance.Button || flatStyle == FlatStyle.System)
System\Windows\Forms\RadioButtonTests.cs (10)
25Assert.Equal(Appearance.Normal, control.Appearance); 1656[InlineData(Appearance.Button, FlatStyle.Standard)] 1657[InlineData(Appearance.Button, FlatStyle.Flat)] 1658[InlineData(Appearance.Button, FlatStyle.Popup)] 1659[InlineData(Appearance.Button, FlatStyle.System)] 1660[InlineData(Appearance.Normal, FlatStyle.Standard)] 1661[InlineData(Appearance.Normal, FlatStyle.Flat)] 1662[InlineData(Appearance.Normal, FlatStyle.Popup)] 1663[InlineData(Appearance.Normal, FlatStyle.System)] 1664public void RadioButton_OverChangeRectangle_Get(Appearance appearance, FlatStyle flatStyle) => base.ButtonBase_OverChangeRectangle_Get(appearance, flatStyle);
WinFormsControlsTest (2)
CustomComCtl32Button.cs (2)
27Appearance = Appearance.Button, 36Appearance = Appearance.Button,