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

Inheritance: System.Windows.Controls.Button
Afficher le fichier Open project: kasicass/kasicass Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description
OnActivatingKeyTipThunk void
OnCoerceFocusable object
OnKeyTipAccessedThunk void
RibbonButton System

Méthodes publiques

Méthode Description
OnApplyTemplate ( ) : void

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e ActivatingKeyTipEventArgs
Résultat void

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnClick() protected méthode

protected OnClick ( ) : void
Résultat void

OnCreateAutomationPeer() protected méthode

Get AutomationPeer for RibbonButton control
protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
Résultat System.Windows.Automation.Peers.AutomationPeer

OnGotKeyboardFocus() protected méthode

protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnKeyTipAccessed() protected méthode

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e KeyTipAccessedEventArgs
Résultat void

OnLostKeyboardFocus() protected méthode

protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
e System.Windows.Input.KeyboardFocusChangedEventArgs
Résultat void

OnMouseLeftButtonDown() protected méthode

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
Résultat void

Property Details

CanAddToQuickAccessToolBarDirectlyProperty public_oe static_oe property

DependencyProperty for CanAddToQuickAccessToolBarDirectly property.
public static DependencyProperty,System.Windows CanAddToQuickAccessToolBarDirectlyProperty
Résultat System.Windows.DependencyProperty

ControlSizeDefinitionProperty public_oe static_oe property

DependencyProperty for ControlSizeDefinition property.
public static DependencyProperty,System.Windows ControlSizeDefinitionProperty
Résultat System.Windows.DependencyProperty

CornerRadiusProperty public_oe static_oe property

DependencyProperty for CornerRadius
public static DependencyProperty,System.Windows CornerRadiusProperty
Résultat System.Windows.DependencyProperty

FocusedBackgroundProperty public_oe static_oe property

DependencyProperty for FocusedBackground property.
public static DependencyProperty,System.Windows FocusedBackgroundProperty
Résultat System.Windows.DependencyProperty

FocusedBorderBrushProperty public_oe static_oe property

DependencyProperty for FocusedBorderBrush property.
public static DependencyProperty,System.Windows FocusedBorderBrushProperty
Résultat System.Windows.DependencyProperty

IsInControlGroupProperty public_oe static_oe property

DependencyProperty for IsInControlGroup property.
public static DependencyProperty,System.Windows IsInControlGroupProperty
Résultat System.Windows.DependencyProperty

IsInQuickAccessToolBarProperty public_oe static_oe property

DependencyProperty for IsInQuickAccessToolBar property.
public static DependencyProperty,System.Windows IsInQuickAccessToolBarProperty
Résultat System.Windows.DependencyProperty

KeyTipProperty public_oe static_oe property

DependencyProperty for KeyTip property.
public static DependencyProperty,System.Windows KeyTipProperty
Résultat System.Windows.DependencyProperty

LabelProperty public_oe static_oe property

DependencyProperty for Label property.
public static DependencyProperty,System.Windows LabelProperty
Résultat System.Windows.DependencyProperty

LargeImageSourceProperty public_oe static_oe property

DependencyProperty for LargeImageSource property.
public static DependencyProperty,System.Windows LargeImageSourceProperty
Résultat System.Windows.DependencyProperty

MouseOverBackgroundProperty public_oe static_oe property

DependencyProperty for MouseOverBackground property.
public static DependencyProperty,System.Windows MouseOverBackgroundProperty
Résultat System.Windows.DependencyProperty

MouseOverBorderBrushProperty public_oe static_oe property

DependencyProperty for MouseOverBorderBrush property.
public static DependencyProperty,System.Windows MouseOverBorderBrushProperty
Résultat System.Windows.DependencyProperty

PressedBackgroundProperty public_oe static_oe property

DependencyProperty for PressedBackground property.
public static DependencyProperty,System.Windows PressedBackgroundProperty
Résultat System.Windows.DependencyProperty

PressedBorderBrushProperty public_oe static_oe property

DependencyProperty for PressedBorderBrush property.
public static DependencyProperty,System.Windows PressedBorderBrushProperty
Résultat System.Windows.DependencyProperty

QuickAccessToolBarControlSizeDefinitionProperty public_oe static_oe property

DependencyProperty for QuickAccessToolBarControlSizeDefinition property.
public static DependencyProperty,System.Windows QuickAccessToolBarControlSizeDefinitionProperty
Résultat System.Windows.DependencyProperty

QuickAccessToolBarIdProperty public_oe static_oe property

DependencyProperty for QuickAccessToolBarId property.
public static DependencyProperty,System.Windows QuickAccessToolBarIdProperty
Résultat System.Windows.DependencyProperty

RibbonProperty public_oe static_oe property

DependencyProperty for Ribbon property.
public static DependencyProperty,System.Windows RibbonProperty
Résultat System.Windows.DependencyProperty

ShowKeyboardCuesProperty public_oe static_oe property

DependencyProperty for ShowKeyboardCues property.
public static DependencyProperty,System.Windows ShowKeyboardCuesProperty
Résultat System.Windows.DependencyProperty

SmallImageSourceProperty public_oe static_oe property

DependencyProperty for SmallImageSource property.
public static DependencyProperty,System.Windows SmallImageSourceProperty
Résultat System.Windows.DependencyProperty

ToolTipDescriptionProperty public_oe static_oe property

DependencyProperty for ToolTipDescription property.
public static DependencyProperty,System.Windows ToolTipDescriptionProperty
Résultat System.Windows.DependencyProperty

ToolTipFooterDescriptionProperty public_oe static_oe property

DependencyProperty for ToolTipFooterDescription property.
public static DependencyProperty,System.Windows ToolTipFooterDescriptionProperty
Résultat System.Windows.DependencyProperty

ToolTipFooterImageSourceProperty public_oe static_oe property

DependencyProperty for ToolTipFooterImageSource property.
public static DependencyProperty,System.Windows ToolTipFooterImageSourceProperty
Résultat System.Windows.DependencyProperty

ToolTipFooterTitleProperty public_oe static_oe property

DependencyProperty for ToolTipFooterTitle property.
public static DependencyProperty,System.Windows ToolTipFooterTitleProperty
Résultat System.Windows.DependencyProperty

ToolTipImageSourceProperty public_oe static_oe property

DependencyProperty for ToolTipImageSource property.
public static DependencyProperty,System.Windows ToolTipImageSourceProperty
Résultat System.Windows.DependencyProperty

ToolTipTitleProperty public_oe static_oe property

DependencyProperty for ToolTipTitle property.
public static DependencyProperty,System.Windows ToolTipTitleProperty
Résultat System.Windows.DependencyProperty