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