6 types derived from ButtonBase
PresentationFramework (6)
System\Windows\Controls\Button.cs (1)
18
public class Button:
ButtonBase
System\Windows\Controls\GridViewColumnHeader.cs (1)
45
public class GridViewColumnHeader :
ButtonBase
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
21
public class DataGridColumnHeader :
ButtonBase
, IProvideDataGridColumn
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
18
public class DataGridRowHeader :
ButtonBase
System\Windows\Controls\Primitives\RepeatButton.cs (1)
18
public class RepeatButton :
ButtonBase
System\Windows\Controls\Primitives\ToggleButton.cs (1)
22
public class ToggleButton :
ButtonBase
90 references to ButtonBase
PresentationFramework (63)
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (6)
15
protected ButtonBaseAutomationPeer(
ButtonBase
owner): base(owner)
24
RoutedUICommand uiCommand = ((
ButtonBase
)Owner).Command as RoutedUICommand;
39
ButtonBase
owner = (
ButtonBase
)Owner;
59
ButtonBase
bb = (
ButtonBase
)Owner;
System\Windows\Controls\Button.cs (1)
29
if (
ButtonBase
.CommandProperty != null)
System\Windows\Controls\DatePicker.cs (1)
41
private
ButtonBase
_dropDownButton;
System\Windows\Controls\GridViewColumnHeader.cs (1)
235
SetValue(
ButtonBase
.IsPressedPropertyKey, BooleanBoxes.TrueBox);
System\Windows\Controls\MenuItem.cs (3)
377
ButtonBase
.CommandProperty.AddOwner(
477
ButtonBase
.CommandParameterProperty.AddOwner(
506
ButtonBase
.CommandTargetProperty.AddOwner(
System\Windows\Controls\Primitives\ButtonBase.cs (18)
27
EventManager.RegisterClassHandler(typeof(
ButtonBase
), AccessKeyManager.AccessKeyPressedEvent, new AccessKeyPressedEventHandler(OnAccessKeyPressed));
28
KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(
ButtonBase
), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
34
InputMethod.IsInputMethodEnabledProperty.OverrideMetadata(typeof(
ButtonBase
), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox, FrameworkPropertyMetadataOptions.Inherits));
36
IsMouseOverPropertyKey.OverrideMetadata(typeof(
ButtonBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
37
IsEnabledProperty.OverrideMetadata(typeof(
ButtonBase
), new UIPropertyMetadata(new PropertyChangedCallback(OnVisualStatePropertyChanged)));
60
RoutedEventArgs newEvent = new RoutedEventArgs(
ButtonBase
.ClickEvent, this);
135
ButtonBase
ctrl = (
ButtonBase
)d;
170
public static readonly RoutedEvent ClickEvent = EventManager.RegisterRoutedEvent("Click", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(
ButtonBase
));
186
typeof(
ButtonBase
),
198
typeof(
ButtonBase
),
213
typeof(
ButtonBase
),
223
typeof(
ButtonBase
),
278
ButtonBase
b = (
ButtonBase
)d;
357
ButtonBase
b = (
ButtonBase
)d;
386
typeof(
ButtonBase
),
System\Windows\Controls\StickyNote.cs (4)
183
button.AddHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
191
closeButton.AddHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
1289
closeButton.RemoveHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
1295
iconButton.RemoveHandler(
ButtonBase
.ClickEvent, new RoutedEventHandler(OnButtonClick));
System\Windows\Controls\ToolBar.cs (3)
73
EventManager.RegisterClassHandler(typeof(ToolBar),
ButtonBase
.ClickEvent, new RoutedEventHandler(_OnClick));
700
ButtonBase
bb = args.OriginalSource as
ButtonBase
;
System\Windows\Documents\Hyperlink.cs (1)
457
public static readonly RoutedEvent ClickEvent = System.Windows.Controls.Primitives.
ButtonBase
.ClickEvent.AddOwner(typeof(Hyperlink));
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
150
case 56: t = () => typeof(
ButtonBase
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (18)
1818
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1819
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandProperty;
1821
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1835
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1836
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandParameterProperty;
1838
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1853
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1854
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.CommandTargetProperty;
1856
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
1869
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
1870
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.IsPressedProperty;
1872
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
4195
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
4196
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.ContentProperty;
4198
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
7733
Type type = typeof(System.Windows.Controls.Primitives.
ButtonBase
);
7734
DependencyProperty dp = System.Windows.Controls.Primitives.
ButtonBase
.ClickModeProperty;
7736
this.GetXamlType(typeof(System.Windows.Controls.Primitives.
ButtonBase
)), // DeclaringType
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2312
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)
1676
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandProperty, Mode = TransferMode.AlwaysTransfer },
1677
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandParameterProperty, Mode = TransferMode.AlwaysTransfer },
1678
new PropertyAndTransferMode () { Property =
ButtonBase
.CommandTargetProperty, Mode = TransferMode.AlwaysTransfer },
2058
if (original is
ButtonBase
)
2134
Debug.Assert(clone is
ButtonBase
,
2142
TransferProperty(original, clone, RibbonSplitButton.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2143
TransferProperty(original, clone, RibbonSplitButton.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2144
TransferProperty(original, clone, RibbonSplitButton.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
2167
Debug.Assert(clone is
ButtonBase
|| clone is RibbonMenuButton,
2170
if (clone is
ButtonBase
)
2173
TransferProperty(original, clone, RibbonMenuItem.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2174
TransferProperty(original, clone, RibbonMenuItem.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2175
TransferProperty(original, clone, RibbonMenuItem.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
2205
Debug.Assert(clone is
ButtonBase
|| clone is RibbonMenuButton,
2208
if (clone is
ButtonBase
)
2211
TransferProperty(original, clone, RibbonMenuItem.CommandProperty,
ButtonBase
.CommandProperty, TransferMode.AlwaysTransfer);
2212
TransferProperty(original, clone, RibbonMenuItem.CommandParameterProperty,
ButtonBase
.CommandParameterProperty, TransferMode.AlwaysTransfer);
2213
TransferProperty(original, clone, RibbonMenuItem.CommandTargetProperty,
ButtonBase
.CommandTargetProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (4)
30
[TemplatePart(Name = RibbonSplitButton.HeaderButtonTemplatePartName, Type = typeof(
ButtonBase
))]
60
_headerButton = GetTemplateChild(RibbonSplitButton.HeaderButtonTemplatePartName) as
ButtonBase
;
467
internal
ButtonBase
HeaderButton
503
private
ButtonBase
_headerButton;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (5)
166
_headerButton = GetTemplateChild(HeaderButtonTemplatePart) as
ButtonBase
;
267
_partHeaderButton = GetTemplateChild(HeaderButtonTemplatePart) as
ButtonBase
;
339
internal
ButtonBase
HeaderButton
353
ButtonBase
_headerButton;
355
ButtonBase
_partHeaderButton;