3 implementations of IButtonControl
System.Windows.Forms (2)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
18
public partial class Button : ButtonBase,
IButtonControl
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
20
public partial class LinkLabel : Label,
IButtonControl
System.Windows.Forms.Tests (1)
System\Windows\Forms\ButtonBaseTests.cs (1)
9254
private class ButtonControl : ButtonBase,
IButtonControl
25 references to IButtonControl
System.Windows.Forms (18)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1300
if (_control is
IButtonControl
ibuttonControl)
1661
if (_control is
IButtonControl
buttonControl)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
335
if (this is
IButtonControl
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1296
if (this is
IButtonControl
control)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
735
DialogResult
IButtonControl
.DialogResult
747
void
IButtonControl
.NotifyDefault(bool value)
1381
void
IButtonControl
.PerformClick()
System\Windows\Forms\Form.cs (9)
220
public
IButtonControl
? AcceptButton
222
get => Properties.GetValueOrDefault<
IButtonControl
?>(s_propAcceptButton);
712
public
IButtonControl
? CancelButton
714
get => Properties.GetValueOrDefault<
IButtonControl
>(s_propCancelButton);
4700
if (Properties.TryGetValue(s_propDefaultButton, out
IButtonControl
? button))
5266
private void SetDefaultButton(
IButtonControl
? button)
5268
IButtonControl
? existing = Properties.GetValueOrDefault<
IButtonControl
>(s_propDefaultButton);
5999
if (containerControl.ActiveControl is
IButtonControl
control)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
63
public new
IButtonControl
? AcceptButton
138
public new
IButtonControl
? CancelButton
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
263
if (focusedControl is
IButtonControl
button)
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
30
private
IButtonControl
AcceptButton
32
get => ShadowProperties[nameof(AcceptButton)] as
IButtonControl
;
44
private
IButtonControl
CancelButton
46
get => ShadowProperties[nameof(CancelButton)] as
IButtonControl
;
380
if (ce.Component is
IButtonControl
)
System.Windows.Forms.Tests (1)
System\Windows\Forms\FormTests.cs (1)
211
Mock<
IButtonControl
> mock = new(MockBehavior.Strict);