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

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

Public Properties

Property Type Description
CanAddToQuickAccessToolBarDirectlyProperty System.Windows.DependencyProperty
CanUserResizeHorizontallyProperty System.Windows.DependencyProperty
CanUserResizeVerticallyProperty System.Windows.DependencyProperty
ControlSizeDefinitionProperty System.Windows.DependencyProperty
DropDownHeightProperty System.Windows.DependencyProperty
FocusedBackgroundProperty System.Windows.DependencyProperty
FocusedBorderBrushProperty System.Windows.DependencyProperty
HasGalleryProperty System.Windows.DependencyProperty
IsDropDownOpenProperty System.Windows.DependencyProperty
IsDropDownPositionedAboveProperty System.Windows.DependencyProperty
IsInControlGroupProperty System.Windows.DependencyProperty
IsInQuickAccessToolBarProperty System.Windows.DependencyProperty
ItemContainerTemplateSelectorProperty 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
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
UsesItemContainerTemplateProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
BaseOnIsKeyboardFocusWithin void
BringIndexIntoView void
CoerceCanUserResizeProperty object
CoerceDropDownHeightProperty object
CoerceIsDropDownOpen object
HandleIsVisibleChanged void
IsHeightValid bool
OnActivatingKeyTipThunk void
OnAnyMouseDown void
OnClickThrough void
OnClickThroughThunk void
OnContextMenuClosingInternal void
OnContextMenuClosingThunk void
OnContextMenuOpeningInternal void
OnContextMenuOpeningThunk void
OnDismissPopupThunk void
OnDropDownClosed void
OnDropDownOpened void
OnGotKeyboardFocusThunk void
OnGotKeyboardFocusThunk void
OnHasGalleryChanged void
OnIsDropDownOpenChanged void
OnIsDropDownOpenChanged void
OnIsSelectedChanged void
OnItemContainerGeneratorStatusChanged void
OnKeyTipAccessedThunk void
OnLostMouseCaptureThunk void
OnLostMouseCaptureThunk void
OnMouseDownThunk void
OnNavigationKeyDown void
OnPopupResize void
OnPopupResizeStarted void
OnPseudoInheritedPropertyChanged void
OpenOnLoad void
RegisterOpenOnVisible void
RegisterToOpenOnLoad void
ResizePopupInternal bool
RibbonMenuButton System
TransferPseudoInheritedProperties void
UpdateDropDownPosition object

Public Methods

Method Description
OnApplyTemplate ( ) : void

Protected Methods

Method Description
ClearContainerForItemOverride ( DependencyObject element, object item ) : void
GetContainerForItemOverride ( ) : DependencyObject
HandleMouseButton ( System.Windows.Input.MouseButtonEventArgs e ) : void

base exits MenuMode on any Mouse clicks. We want to prevent that.

IsItemItsOwnContainerOverride ( object item ) : bool
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnDismissPopup ( RibbonDismissPopupEventArgs e ) : void
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnTemplateChanged ( System.Windows.Controls.ControlTemplate oldTemplate, System.Windows.Controls.ControlTemplate newTemplate ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool

Private Methods

Method Description
BaseOnIsKeyboardFocusWithin ( ) : void

Helper method to call the base.OnIsKeyboardFocusWithinChanged method the first time after deferal.

BringIndexIntoView ( int index ) : void
CoerceCanUserResizeProperty ( DependencyObject d, object baseValue ) : object
CoerceDropDownHeightProperty ( DependencyObject d, object baseValue ) : object
CoerceIsDropDownOpen ( DependencyObject d, object baseValue ) : object
HandleIsVisibleChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
IsHeightValid ( object value ) : bool
OnActivatingKeyTipThunk ( object sender, ActivatingKeyTipEventArgs e ) : void
OnAnyMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnClickThrough ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnClickThroughThunk ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnContextMenuClosingInternal ( ) : void
OnContextMenuClosingThunk ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void
OnContextMenuOpeningInternal ( ) : void
OnContextMenuOpeningThunk ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void
OnDismissPopupThunk ( object sender, RibbonDismissPopupEventArgs e ) : void
OnDropDownClosed ( EventArgs e ) : void
OnDropDownOpened ( EventArgs e ) : void
OnGotKeyboardFocusThunk ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnGotKeyboardFocusThunk ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnHasGalleryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsDropDownOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsDropDownOpenChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsSelectedChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Called when IsSelected changed on this element or any descendant.

OnItemContainerGeneratorStatusChanged ( object sender, EventArgs e ) : void
OnKeyTipAccessedThunk ( object sender, KeyTipAccessedEventArgs e ) : void
OnLostMouseCaptureThunk ( System.Windows.Input.MouseEventArgs e ) : void
OnLostMouseCaptureThunk ( object sender, System.Windows.Input.MouseEventArgs e ) : void
OnMouseDownThunk ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnNavigationKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnPopupResize ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnPopupResizeStarted ( object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e ) : void
OnPseudoInheritedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OpenOnLoad ( object sender, RoutedEventArgs e ) : void
RegisterOpenOnVisible ( ) : void
RegisterToOpenOnLoad ( ) : void
ResizePopupInternal ( double newWidth, double newHeight ) : bool

Called from UIA Peers.

RibbonMenuButton ( ) : System

Initializes static members of the RibbonMenuButton class. Here we override the default style, a coerce callback, and allow tooltips to be shown for disabled commands.

TransferPseudoInheritedProperties ( ) : void
UpdateDropDownPosition ( object arg ) : object

Method Details

ClearContainerForItemOverride() protected method

protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

GetContainerForItemOverride() protected method

protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

HandleMouseButton() protected method

base exits MenuMode on any Mouse clicks. We want to prevent that.
protected HandleMouseButton ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

IsItemItsOwnContainerOverride() protected method

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
return bool

OnActivatingKeyTip() protected method

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

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnCreateAutomationPeer() protected method

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

OnDismissPopup() protected method

protected OnDismissPopup ( RibbonDismissPopupEventArgs e ) : void
e RibbonDismissPopupEventArgs
return void

OnGotKeyboardFocus() protected method

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

OnIsKeyboardFocusWithinChanged() protected method

protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnKeyTipAccessed() protected method

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

OnKeyUp() protected method

protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnPreviewKeyDown() protected method

protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

OnPreviewMouseDown() protected method

protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnTemplateChanged() protected method

protected OnTemplateChanged ( System.Windows.Controls.ControlTemplate oldTemplate, System.Windows.Controls.ControlTemplate newTemplate ) : void
oldTemplate System.Windows.Controls.ControlTemplate
newTemplate System.Windows.Controls.ControlTemplate
return void

PrepareContainerForItemOverride() protected method

protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

ShouldApplyItemContainerStyle() protected method

protected ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool
container System.Windows.DependencyObject
item object
return bool

Property Details

CanAddToQuickAccessToolBarDirectlyProperty public_oe static_oe property

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

CanUserResizeHorizontallyProperty public_oe static_oe property

public static DependencyProperty,System.Windows CanUserResizeHorizontallyProperty
return System.Windows.DependencyProperty

CanUserResizeVerticallyProperty public_oe static_oe property

public static DependencyProperty,System.Windows CanUserResizeVerticallyProperty
return System.Windows.DependencyProperty

ControlSizeDefinitionProperty public_oe static_oe property

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

DropDownHeightProperty public_oe static_oe property

public static DependencyProperty,System.Windows DropDownHeightProperty
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

HasGalleryProperty public_oe static_oe property

public static DependencyProperty,System.Windows HasGalleryProperty
return System.Windows.DependencyProperty

IsDropDownOpenProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsDropDownOpenProperty
return System.Windows.DependencyProperty

IsDropDownPositionedAboveProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsDropDownPositionedAboveProperty
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

ItemContainerTemplateSelectorProperty public_oe static_oe property

DependencyProperty for ItemContainerTemplateSelector property.
public static DependencyProperty,System.Windows ItemContainerTemplateSelectorProperty
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

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

UsesItemContainerTemplateProperty public_oe static_oe property

DependencyProperty for UsesItemContainerTemplateSelector property.
public static DependencyProperty,System.Windows UsesItemContainerTemplateProperty
return System.Windows.DependencyProperty