C# Class Microsoft.Windows.Controls.Ribbon.RibbonButton

Inheritance: System.Windows.Controls.Button
Datei anzeigen Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
CanAddToQuickAccessToolBarDirectlyProperty System.Windows.DependencyProperty
ControlSizeDefinitionProperty System.Windows.DependencyProperty
CornerRadiusProperty System.Windows.DependencyProperty
FocusedBackgroundProperty System.Windows.DependencyProperty
FocusedBorderBrushProperty System.Windows.DependencyProperty
IsInControlGroupProperty System.Windows.DependencyProperty
IsInQuickAccessToolBarProperty System.Windows.DependencyProperty
KeyTipProperty System.Windows.DependencyProperty
LabelProperty System.Windows.DependencyProperty
LargeImageSourceProperty System.Windows.DependencyProperty
MouseOverBackgroundProperty System.Windows.DependencyProperty
MouseOverBorderBrushProperty System.Windows.DependencyProperty
PressedBackgroundProperty System.Windows.DependencyProperty
PressedBorderBrushProperty System.Windows.DependencyProperty
QuickAccessToolBarControlSizeDefinitionProperty System.Windows.DependencyProperty
QuickAccessToolBarIdProperty System.Windows.DependencyProperty
RibbonProperty System.Windows.DependencyProperty
ShowKeyboardCuesProperty System.Windows.DependencyProperty
SmallImageSourceProperty System.Windows.DependencyProperty
ToolTipDescriptionProperty System.Windows.DependencyProperty
ToolTipFooterDescriptionProperty System.Windows.DependencyProperty
ToolTipFooterImageSourceProperty System.Windows.DependencyProperty
ToolTipFooterTitleProperty System.Windows.DependencyProperty
ToolTipImageSourceProperty System.Windows.DependencyProperty
ToolTipTitleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
OnActivatingKeyTipThunk void
OnCoerceFocusable object
OnKeyTipAccessedThunk void
RibbonButton System

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnClick ( ) : void
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer

Get AutomationPeer for RibbonButton control

OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

This override ensures that the base call doesn't cause the control to take keyboard focus. And it does so by temporarily coercing the FocusableProperty to false.

Private Methods

Method Description
OnActivatingKeyTipThunk ( object sender, ActivatingKeyTipEventArgs e ) : void
OnCoerceFocusable ( DependencyObject d, object baseValue ) : object
OnKeyTipAccessedThunk ( object sender, KeyTipAccessedEventArgs e ) : void
RibbonButton ( ) : System

Initializes static members of the RibbonButton class. Here we override the default style, a couple callbacks, and allow tooltips to be shown for disabled controls.

Method Details

OnActivatingKeyTip() protected method

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e ActivatingKeyTipEventArgs
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnClick() protected method

protected OnClick ( ) : void
return void

OnCreateAutomationPeer() protected method

Get AutomationPeer for RibbonButton control
protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

OnGotKeyboardFocus() protected method

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnKeyTipAccessed() protected method

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e KeyTipAccessedEventArgs
return void

OnLostKeyboardFocus() protected method

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnMouseLeftButtonDown() protected method

This override ensures that the base call doesn't cause the control to take keyboard focus. And it does so by temporarily coercing the FocusableProperty to false.
protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

Property Details

CanAddToQuickAccessToolBarDirectlyProperty public_oe static_oe property

DependencyProperty for CanAddToQuickAccessToolBarDirectly property.
public static DependencyProperty,System.Windows CanAddToQuickAccessToolBarDirectlyProperty
return System.Windows.DependencyProperty

ControlSizeDefinitionProperty public_oe static_oe property

DependencyProperty for ControlSizeDefinition property.
public static DependencyProperty,System.Windows ControlSizeDefinitionProperty
return System.Windows.DependencyProperty

CornerRadiusProperty public_oe static_oe property

DependencyProperty for CornerRadius
public static DependencyProperty,System.Windows CornerRadiusProperty
return System.Windows.DependencyProperty

FocusedBackgroundProperty public_oe static_oe property

DependencyProperty for FocusedBackground property.
public static DependencyProperty,System.Windows FocusedBackgroundProperty
return System.Windows.DependencyProperty

FocusedBorderBrushProperty public_oe static_oe property

DependencyProperty for FocusedBorderBrush property.
public static DependencyProperty,System.Windows FocusedBorderBrushProperty
return System.Windows.DependencyProperty

IsInControlGroupProperty public_oe static_oe property

DependencyProperty for IsInControlGroup property.
public static DependencyProperty,System.Windows IsInControlGroupProperty
return System.Windows.DependencyProperty

IsInQuickAccessToolBarProperty public_oe static_oe property

DependencyProperty for IsInQuickAccessToolBar property.
public static DependencyProperty,System.Windows IsInQuickAccessToolBarProperty
return System.Windows.DependencyProperty

KeyTipProperty public_oe static_oe property

DependencyProperty for KeyTip property.
public static DependencyProperty,System.Windows KeyTipProperty
return System.Windows.DependencyProperty

LabelProperty public_oe static_oe property

DependencyProperty for Label property.
public static DependencyProperty,System.Windows LabelProperty
return System.Windows.DependencyProperty

LargeImageSourceProperty public_oe static_oe property

DependencyProperty for LargeImageSource property.
public static DependencyProperty,System.Windows LargeImageSourceProperty
return System.Windows.DependencyProperty

MouseOverBackgroundProperty public_oe static_oe property

DependencyProperty for MouseOverBackground property.
public static DependencyProperty,System.Windows MouseOverBackgroundProperty
return System.Windows.DependencyProperty

MouseOverBorderBrushProperty public_oe static_oe property

DependencyProperty for MouseOverBorderBrush property.
public static DependencyProperty,System.Windows MouseOverBorderBrushProperty
return System.Windows.DependencyProperty

PressedBackgroundProperty public_oe static_oe property

DependencyProperty for PressedBackground property.
public static DependencyProperty,System.Windows PressedBackgroundProperty
return System.Windows.DependencyProperty

PressedBorderBrushProperty public_oe static_oe property

DependencyProperty for PressedBorderBrush property.
public static DependencyProperty,System.Windows PressedBorderBrushProperty
return System.Windows.DependencyProperty

QuickAccessToolBarControlSizeDefinitionProperty public_oe static_oe property

DependencyProperty for QuickAccessToolBarControlSizeDefinition property.
public static DependencyProperty,System.Windows QuickAccessToolBarControlSizeDefinitionProperty
return System.Windows.DependencyProperty

QuickAccessToolBarIdProperty public_oe static_oe property

DependencyProperty for QuickAccessToolBarId property.
public static DependencyProperty,System.Windows QuickAccessToolBarIdProperty
return System.Windows.DependencyProperty

RibbonProperty public_oe static_oe property

DependencyProperty for Ribbon property.
public static DependencyProperty,System.Windows RibbonProperty
return System.Windows.DependencyProperty

ShowKeyboardCuesProperty public_oe static_oe property

DependencyProperty for ShowKeyboardCues property.
public static DependencyProperty,System.Windows ShowKeyboardCuesProperty
return System.Windows.DependencyProperty

SmallImageSourceProperty public_oe static_oe property

DependencyProperty for SmallImageSource property.
public static DependencyProperty,System.Windows SmallImageSourceProperty
return System.Windows.DependencyProperty

ToolTipDescriptionProperty public_oe static_oe property

DependencyProperty for ToolTipDescription property.
public static DependencyProperty,System.Windows ToolTipDescriptionProperty
return System.Windows.DependencyProperty

ToolTipFooterDescriptionProperty public_oe static_oe property

DependencyProperty for ToolTipFooterDescription property.
public static DependencyProperty,System.Windows ToolTipFooterDescriptionProperty
return System.Windows.DependencyProperty

ToolTipFooterImageSourceProperty public_oe static_oe property

DependencyProperty for ToolTipFooterImageSource property.
public static DependencyProperty,System.Windows ToolTipFooterImageSourceProperty
return System.Windows.DependencyProperty

ToolTipFooterTitleProperty public_oe static_oe property

DependencyProperty for ToolTipFooterTitle property.
public static DependencyProperty,System.Windows ToolTipFooterTitleProperty
return System.Windows.DependencyProperty

ToolTipImageSourceProperty public_oe static_oe property

DependencyProperty for ToolTipImageSource property.
public static DependencyProperty,System.Windows ToolTipImageSourceProperty
return System.Windows.DependencyProperty

ToolTipTitleProperty public_oe static_oe property

DependencyProperty for ToolTipTitle property.
public static DependencyProperty,System.Windows ToolTipTitleProperty
return System.Windows.DependencyProperty