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

Inheritance: RibbonMenuItem
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
LevelProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
CoerceIsSubmenuOpen object
RibbonApplicationMenuItem System

Public Methods

Method Description
OnApplyTemplate ( ) : void

Invoked whenever the control's template is applied.

Protected Methods

Method Description
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Called when the container is being attached to the parent ItemsControl

ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool

Private Methods

Method Description
CoerceIsSubmenuOpen ( DependencyObject d, object baseValue ) : object
RibbonApplicationMenuItem ( ) : System

Initializes static members of the RibbonApplicationMenuItem class. This also overrides the default style, the Command PropertyChangedCallback, and the default RibbonControlSizeDefintion for a MenuItem.

Method Details

GetContainerForItemOverride() protected method

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

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

Invoked whenever the control's template is applied.
public OnApplyTemplate ( ) : void
return void

OnKeyDown() protected method

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

PrepareContainerForItemOverride() protected method

Called when the container is being attached to the parent ItemsControl
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

LevelProperty public static property

Using a DependencyProperty as the backing store for Level to enable binding.
public static DependencyProperty,System.Windows LevelProperty
return System.Windows.DependencyProperty