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