6 types derived from ButtonBaseAdapter
System.Windows.Forms (5)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (1)
8internal class ButtonFlatAdapter : ButtonBaseAdapter
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (1)
9internal class ButtonPopupAdapter : ButtonBaseAdapter
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
10internal class ButtonStandardAdapter : ButtonBaseAdapter
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
11internal abstract class CheckableControlBaseAdapter : ButtonBaseAdapter
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (1)
9internal class ButtonDarkModeAdapter : ButtonBaseAdapter
System.Windows.Forms.Tests (1)
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (1)
61private class StubButtonBaseAdapter : ButtonBaseAdapter
99 references to ButtonBaseAdapter
System.Windows.Forms (70)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
78internal override ButtonBaseAdapter CreateFlatAdapter() => DarkModeAdapterFactory.CreateFlatAdapter(this); 80internal override ButtonBaseAdapter CreatePopupAdapter() => DarkModeAdapterFactory.CreatePopupAdapter(this); 82internal override ButtonBaseAdapter CreateStandardAdapter() => DarkModeAdapterFactory.CreateStandardAdapter(this);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
47private ButtonBaseAdapter? _adapter; 1026internal ButtonBaseAdapter Adapter 1056internal virtual ButtonBaseAdapter CreateFlatAdapter() 1062internal virtual ButtonBaseAdapter CreatePopupAdapter() 1068internal virtual ButtonBaseAdapter CreateStandardAdapter()
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (3)
14private ButtonBaseAdapter? _buttonAdapter; 20protected ButtonBaseAdapter ButtonAdapter => _buttonAdapter ??= CreateButtonAdapter(); 39protected abstract ButtonBaseAdapter CreateButtonAdapter();
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (1)
89protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonFlatAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (1)
118protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonPopupAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
110protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonStandardAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\DarkModeAdapterFactory.cs (3)
8public static ButtonBaseAdapter CreateFlatAdapter(ButtonBase control) => 13public static ButtonBaseAdapter CreateStandardAdapter(ButtonBase control) => 18public static ButtonBaseAdapter CreatePopupAdapter(ButtonBase control) =>
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (1)
83protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonFlatAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (1)
88protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonPopupAdapter(Control);
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (1)
55protected override ButtonBaseAdapter CreateButtonAdapter() => new ButtonStandardAdapter(Control);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (3)
527internal override ButtonBaseAdapter CreateFlatAdapter() => new CheckBoxFlatAdapter(this); 529internal override ButtonBaseAdapter CreatePopupAdapter() => new CheckBoxPopupAdapter(this); 531internal override ButtonBaseAdapter CreateStandardAdapter() => new CheckBoxStandardAdapter(this);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
468internal override ButtonBaseAdapter CreateFlatAdapter() => new RadioButtonFlatAdapter(this); 470internal override ButtonBaseAdapter CreatePopupAdapter() => new RadioButtonPopupAdapter(this); 472internal override ButtonBaseAdapter CreateStandardAdapter() => new RadioButtonStandardAdapter(this);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (20)
764ButtonBaseAdapter.DrawDefaultBorder(g, valBounds, backBrushColor, isDefault: true); 770ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintFlatRender( 802ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender( 807ButtonBaseAdapter.DrawDefaultBorder( 823ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender( 828ButtonBaseAdapter.DrawDefaultBorder( 833ButtonBaseAdapter.Draw3DLiteBorder(g, valBounds, colors, true); 838ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender( 843ButtonBaseAdapter.DrawDefaultBorder( 894ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintFlatRender( 902ButtonBaseAdapter.LayoutOptions options = ButtonFlatAdapter.PaintFlatLayout( 915ButtonBaseAdapter.LayoutData layout = options.Layout(); 917ButtonBaseAdapter.DrawFlatFocus( 933ButtonBaseAdapter.LayoutOptions options = ButtonPopupAdapter.PaintPopupLayout( 945ButtonBaseAdapter.LayoutData layout = options.Layout();
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (16)
1313ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.R), 1314ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.G), 1315ButtonBaseAdapter.ColorOptions.Adjust255(adjust, highlight.B)); 1333ButtonBaseAdapter.DrawDitheredFill(g, backBrushColor, highlight, checkBounds); 1397ButtonBaseAdapter.LayoutOptions options = CheckBoxPopupAdapter.PaintPopupLayout( 1410ButtonBaseAdapter.LayoutData layout = options.Layout(); 1414ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender( 1446ButtonBaseAdapter.LayoutOptions options = CheckBoxPopupAdapter.PaintPopupLayout( 1459ButtonBaseAdapter.LayoutData layout = options.Layout(); 1463ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender( 1493ButtonBaseAdapter.LayoutOptions options = CheckBoxPopupAdapter.PaintPopupLayout( 1506ButtonBaseAdapter.LayoutData layout = options.Layout(); 1510ButtonBaseAdapter.ColorData colors = ButtonBaseAdapter.PaintPopupRender(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
188internal override ButtonBaseAdapter CreateStandardAdapter() => new DropDownButtonAdapter(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (6)
18private ButtonBaseAdapter.LayoutData? _layoutData; 36ButtonBaseAdapter.LayoutData layoutData = LayoutData; 43internal ButtonBaseAdapter.LayoutData LayoutData 60ButtonBaseAdapter.LayoutData layoutData = LayoutData; 144private ButtonBaseAdapter.LayoutData GetLayoutData() 153ButtonBaseAdapter.LayoutData data = _currentLayoutOptions.Layout();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.ToolStripItemLayoutOptions.cs (1)
14internal class ToolStripItemLayoutOptions : ButtonBaseAdapter.LayoutOptions
System.Windows.Forms.Tests (29)
System\Windows\Forms\ButtonFlatAdapterTests.cs (4)
28internal override ButtonBaseAdapter CreateStandardAdapter() => new ButtonFlatAdapter(this); 170ButtonBaseAdapter.LayoutOptions layoutOptionsTrue = ButtonFlatAdapter.PaintFlatLayout( 183ButtonBaseAdapter.LayoutOptions layoutOptionsFalse = ButtonFlatAdapter.PaintFlatLayout( 218ButtonBaseAdapter.LayoutOptions layoutOptions = ButtonFlatAdapter.PaintFlatLayout(
System\Windows\Forms\ButtonPopupAdapterTests.cs (2)
6using static System.Windows.Forms.ButtonInternal.ButtonBaseAdapter; 37internal override ButtonBaseAdapter CreateStandardAdapter() => new ButtonPopupAdapter(this);
System\Windows\Forms\CheckBoxBaseAdapterTests.cs (16)
58protected override ButtonBaseAdapter CreateButtonAdapter() 83private static ButtonBaseAdapter.LayoutData CreateLayoutData(bool dotNetOneButtonCompat = false) 85ButtonBaseAdapter.LayoutData layout = new( 86new ButtonBaseAdapter.LayoutOptions 97private static ButtonBaseAdapter.ColorData CreateColorData(Graphics graphics) 99ButtonBaseAdapter.ColorOptions options = new( 105ButtonBaseAdapter.ColorData colorData = new(options) 128ButtonBaseAdapter.LayoutData layout = CreateLayoutData(dotNetOneButtonCompat); 132ButtonBaseAdapter.ColorData colors = CreateColorData(graphics); 185ButtonBaseAdapter.LayoutData layout = CreateLayoutData(); 186ButtonBaseAdapter.ColorData colors = CreateColorData(graphics); 206ButtonBaseAdapter.ColorData colors = CreateColorData(graphics); 223ButtonBaseAdapter.ColorData colors = CreateColorData(graphics); 241ButtonBaseAdapter.ColorData colors = CreateColorData(graphics); 276ButtonBaseAdapter.LayoutData layout = new(new ButtonBaseAdapter.LayoutOptions())
System\Windows\Forms\CheckBoxFlatAdapterTests.cs (1)
125ButtonBaseAdapter result = checkBoxFlatAdapter.TestAccessor().Dynamic.CreateButtonAdapter();
System\Windows\Forms\CheckBoxPopupAdapterTests.cs (1)
8using static System.Windows.Forms.ButtonInternal.ButtonBaseAdapter;
System\Windows\Forms\CheckBoxTests.cs (3)
464ButtonInternal.ButtonBaseAdapter buttonBaseAdptr = box.CreateFlatAdapter(); 474ButtonInternal.ButtonBaseAdapter checkBoxPopupAdptr = box.CreatePopupAdapter(); 484ButtonInternal.ButtonBaseAdapter checkBoxSndAdptr = box.CreateStandardAdapter();
System\Windows\Forms\RadioButtonBaseAdapterTests.cs (2)
6using static System.Windows.Forms.ButtonInternal.ButtonBaseAdapter; 75protected override ButtonBaseAdapter CreateButtonAdapter()