6 types derived from ButtonBase
PresentationFramework (6)
System\Windows\Controls\Button.cs (1)
27
public class Button:
ButtonBase
System\Windows\Controls\GridViewColumnHeader.cs (1)
49
public class GridViewColumnHeader :
ButtonBase
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
26
public class DataGridColumnHeader :
ButtonBase
, IProvideDataGridColumn
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
23
public class DataGridRowHeader :
ButtonBase
System\Windows\Controls\Primitives\RepeatButton.cs (1)
27
public class RepeatButton :
ButtonBase
System\Windows\Controls\Primitives\ToggleButton.cs (1)
31
public class ToggleButton :
ButtonBase
90 references to ButtonBase
PresentationFramework (63)
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (6)
28
protected ButtonBaseAutomationPeer(
ButtonBase
owner): base(owner)
37
RoutedUICommand uiCommand = ((
ButtonBase
)Owner).Command as RoutedUICommand;
52
ButtonBase
owner = (
ButtonBase
)Owner;
72
ButtonBase
bb = (
ButtonBase
)Owner;
System\Windows\Controls\Button.cs (1)
38
if (
ButtonBase
.CommandProperty != null)
System\Windows\Controls\DatePicker.cs (1)
45
private
ButtonBase
_dropDownButton;
System\Windows\Controls\GridViewColumnHeader.cs (1)
239
SetValue(
ButtonBase
.IsPressedPropertyKey, BooleanBoxes.TrueBox);
System\Windows\Controls\MenuItem.cs (3)
387
ButtonBase
.CommandProperty.AddOwner(
487
ButtonBase
.CommandParameterProperty.AddOwner(
516
ButtonBase
.CommandTargetProperty.AddOwner(
System\Windows\Controls\Primitives\ButtonBase.cs (18)
38
EventManager.RegisterClassHandler(typeof(
ButtonBase
), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed));
39
KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(
ButtonBase
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
45
InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(
ButtonBase
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits));
47
IsMouseOverPropertyKey.OverrideMetadata(typeof(
ButtonBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
48
IsEnabledProperty.OverrideMetadata(typeof(
ButtonBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
71
RoutedEventArgs newEvent = new RoutedEventArgs(
ButtonBase
.ClickEvent, this);
146
ButtonBase
ctrl = (
ButtonBase
)d;
181
public static readonly RoutedEvent ClickEvent = EventManager.RegisterRoutedEvent("Click", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
ButtonBase
));
197
typeof(
ButtonBase
),
209
typeof(
ButtonBase
),
224
typeof(
ButtonBase
),
234
typeof(
ButtonBase
),
289
ButtonBase
b = (
ButtonBase
)d;
368
ButtonBase
b = (
ButtonBase
)d;
397
typeof(
ButtonBase
),
System\Windows\Controls\StickyNote.cs (4)
199
button.AddHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
207
closeButton.AddHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
1305
closeButton.RemoveHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
1311
iconButton.RemoveHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
System\Windows\Controls\ToolBar.cs (3)
82
EventManager.RegisterClassHandler(typeof(ToolBar),
ButtonBase
.ClickEvent, new RoutedEventHandler(_OnClick));
709
ButtonBase
bb = args.OriginalSource as
ButtonBase
;
System\Windows\Documents\Hyperlink.cs (1)
463
public static readonly RoutedEvent ClickEvent = System.Windows.Controls.Primitives.
ButtonBase
.ClickEvent.AddOwner(typeof(Hyperlink));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
152
case 56: t = () => typeof(
ButtonBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (18)
1820
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1821
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandProperty;
1823
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1837
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1838
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandParameterProperty;
1840
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1855
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1856
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandTargetProperty;
1858
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1871
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1872
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.IsPressedProperty;
1874
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
4197
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
4198
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.ContentProperty;
4200
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
7735
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
7736
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.ClickModeProperty;
7738
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2314
typeof(System.Windows.Controls.Primitives.
ButtonBase
),
System\Windows\Markup\KnownTypes.cs (5)
1694
return System.Windows.Controls.Primitives.
ButtonBase
.CommandProperty;
1696
return System.Windows.Controls.Primitives.
ButtonBase
.CommandParameterProperty;
1698
return System.Windows.Controls.Primitives.
ButtonBase
.CommandTargetProperty;
1700
return System.Windows.Controls.Primitives.
ButtonBase
.IsPressedProperty;
5610
case KnownElements.ButtonBase: t = typeof(System.Windows.Controls.Primitives.
ButtonBase
); break;
System.Windows.Controls.Ribbon (27)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (18)
1681
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandProperty, Mode = TransferMode.AlwaysTransfer },
1682
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1683
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer },
2063
if (original is
ButtonBase
)
2139
Debug.Assert(clone is
ButtonBase
,
2147
TransferProperty(original, clone, RibbonSplitButton.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2148
TransferProperty(original, clone, RibbonSplitButton.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2149
TransferProperty(original, clone, RibbonSplitButton.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
2172
Debug.Assert(clone is
ButtonBase
|| clone is RibbonMenuButton,
2175
if (clone is
ButtonBase
)
2178
TransferProperty(original, clone, RibbonMenuItem.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2179
TransferProperty(original, clone, RibbonMenuItem.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2180
TransferProperty(original, clone, RibbonMenuItem.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
2210
Debug.Assert(clone is
ButtonBase
|| clone is RibbonMenuButton,
2213
if (clone is
ButtonBase
)
2216
TransferProperty(original, clone, RibbonMenuItem.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2217
TransferProperty(original, clone, RibbonMenuItem.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2218
TransferProperty(original, clone, RibbonMenuItem.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (4)
32
[TemplatePart(Name = RibbonSplitButton.HeaderButtonTemplatePartName, Type = typeof(
ButtonBase
))]
62
_headerButton = GetTemplateChild(RibbonSplitButton.HeaderButtonTemplatePartName) as
ButtonBase
;
469
internal
ButtonBase
HeaderButton
505
private
ButtonBase
_headerButton;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (5)
169
_headerButton = GetTemplateChild(HeaderButtonTemplatePart) as
ButtonBase
;
270
_partHeaderButton = GetTemplateChild(HeaderButtonTemplatePart) as
ButtonBase
;
342
internal
ButtonBase
HeaderButton
356
ButtonBase
_headerButton;
358
ButtonBase
_partHeaderButton;