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