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