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

Inheritance: System.Windows.Controls.ContextMenu
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
HasGalleryProperty System.Windows.DependencyProperty
ItemContainerTemplateSelectorProperty System.Windows.DependencyProperty
UsesItemContainerTemplateProperty System.Windows.DependencyProperty

Protected Methods

Method Description
ClearContainerForItemOverride ( DependencyObject element, object item ) : void
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool

Private Methods

Method Description
CanRaiseDismissPopups ( UIElement dismissPopupSource ) : bool
ChooseContextMenu ( DependencyObject owner ) : RibbonContextMenu
GenerateAddGalleryToQATItem ( RibbonContextMenu contextMenu ) : RibbonMenuItem
GenerateAddToOrRemoveFromQATItem ( bool controlIsInQAT, RibbonContextMenu contextMenu ) : RibbonMenuItem
GenerateMinimizeTheRibbonItem ( RibbonContextMenu contextMenu ) : RibbonMenuItem
GenerateQATPlacementMenuItem ( RibbonContextMenu contextMenu ) : RibbonMenuItem
GetDefaultRibbonClientAreaContextMenu ( ) : RibbonContextMenu
GetDismissPopupSource ( ) : UIElement
GetGalleryContextMenu ( ) : RibbonContextMenu
GetQATControlContextMenu ( ) : RibbonContextMenu
GetRibbonControlContextMenu ( ) : RibbonContextMenu
OnClickThrough ( ) : void
OnClickThroughThunk ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
OnIsOpenChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
RestoreFocusToRibbon ( ) : void

Tries to restore focus to the first focusable element across the ancestor chain of ContextMenuOriginalSource. Should be called only when Ribbon is supposed to retain the focus.

RibbonContextMenu ( ) : System

Initializes static members of the RibbonContextMenu class.

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

IsItemItsOwnContainerOverride() protected method

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

OnCreateAutomationPeer() protected method

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

OnKeyDown() protected method

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
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

HasGalleryProperty public static property

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

ItemContainerTemplateSelectorProperty public static property

DependencyProperty for ItemContainerTemplateSelector property.
public static DependencyProperty,System.Windows ItemContainerTemplateSelectorProperty
return System.Windows.DependencyProperty

UsesItemContainerTemplateProperty public static property

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