C# 클래스 Microsoft.Windows.Controls.Ribbon.RibbonMenuItem

상속: System.Windows.Controls.MenuItem, ISyncKeyTipAndContent
파일 보기 프로젝트 열기: kasicass/kasicass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CanAddToQuickAccessToolBarDirectlyProperty System.Windows.DependencyProperty
CanUserResizeHorizontallyProperty System.Windows.DependencyProperty
CanUserResizeVerticallyProperty System.Windows.DependencyProperty
CheckedBackgroundProperty System.Windows.DependencyProperty
CheckedBorderBrushProperty System.Windows.DependencyProperty
DropDownHeightProperty System.Windows.DependencyProperty
HasGalleryProperty System.Windows.DependencyProperty
ImageSourceProperty System.Windows.DependencyProperty
IsDropDownPositionedLeftProperty System.Windows.DependencyProperty
ItemContainerTemplateSelectorProperty System.Windows.DependencyProperty
KeyTipProperty System.Windows.DependencyProperty
MouseOverBackgroundProperty System.Windows.DependencyProperty
MouseOverBorderBrushProperty System.Windows.DependencyProperty
PressedBackgroundProperty System.Windows.DependencyProperty
PressedBorderBrushProperty System.Windows.DependencyProperty
QuickAccessToolBarIdProperty System.Windows.DependencyProperty
QuickAccessToolBarImageSourceProperty System.Windows.DependencyProperty
RibbonProperty 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

프로퍼티 타입 설명
BringIndexIntoView void
ClickItemInternal void
CloseSubmenu void
CoerceCanUserResizeProperty object
CoerceDropDownHeightProperty object
CoerceHeader object
CoerceKeyTip object
CoerceQuickAccessToolBarImageSource object
FocusOrSelect void
HandleLeftKeyDown bool
IsContainerFocusable bool
OnActivatingKeyTipThunk void
OnClickThrough void
OnClickThroughThunk void
OnContextMenuClosingInternal void
OnContextMenuClosingThunk void
OnContextMenuOpeningInternal void
OnContextMenuOpeningThunk void
OnDismissPopup void
OnDismissPopupThunk void
OnHasGalleryChanged void
OnHeaderChanged void
OnImageSourceChanged void
OnIsCheckedChanged void
OnIsSelectedChanged void
OnIsSelectedChanged void
OnIsSubmenuOpenChanged void
OnItemContainerGeneratorStatusChanged void
OnKeyTipAccessedThunk void
OnKeyTipChanged void
OnPopupOpened void
OnPopupResize void
OnPopupResizeStarted void
OpenSubmenu void
OpenSubmenuWithKeyboard void
PlacePopup System.Windows.Controls.Primitives.CustomPopupPlacement[]
ResizePopupInternal bool
RibbonMenuItem System
SetTimerToCloseSubmenu void
SetTimerToOpenSubmenu void
StartTimer void
StopTimer void
SyncKeyTipAndContent void
UpdateDropDownPosition object
UpdateIsPressed void

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

보호된 메소드들

메소드 설명
ClearContainerForItemOverride ( DependencyObject element, object item ) : void
GetContainerForItemOverride ( ) : DependencyObject
IsItemItsOwnContainerOverride ( object item ) : bool
OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
OnClick ( ) : void
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the focus is no longer on or within this element.

OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnMouseEnter ( System e ) : void

RibbonMenuItems are hosted directly in a Menu, therefore TopLevelHeader should behave same as SubmenuHeader In base MenuItem ToplevelHeaders are opened immediately, but we want them to be opened after MenuShowDelay delay Therefore reimplement base.OnMouseEnter here.

OnMouseLeave ( System e ) : void

base MenuItem closes submenu when mouse moves away. Therefore reimplement base.OnMouseLeave ourselves without closing submenu's.

OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnPreviewKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
ShouldApplyItemContainerStyle ( DependencyObject container, object item ) : bool

비공개 메소드들

메소드 설명
BringIndexIntoView ( int index ) : void
ClickItemInternal ( ) : void
CloseSubmenu ( ) : void
CoerceCanUserResizeProperty ( DependencyObject d, object baseValue ) : object
CoerceDropDownHeightProperty ( DependencyObject d, object baseValue ) : object
CoerceHeader ( DependencyObject d, object baseValue ) : object
CoerceKeyTip ( DependencyObject d, object baseValue ) : object
CoerceQuickAccessToolBarImageSource ( DependencyObject d, object baseValue ) : object
FocusOrSelect ( ) : void

Focus this item or, if that fails, just mark it selected.

HandleLeftKeyDown ( DependencyObject originalSource ) : bool
IsContainerFocusable ( FrameworkElement container ) : bool
OnActivatingKeyTipThunk ( object sender, ActivatingKeyTipEventArgs 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
OnDismissPopup ( RibbonDismissPopupEventArgs e ) : void
OnDismissPopupThunk ( object sender, RibbonDismissPopupEventArgs e ) : void
OnHasGalleryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnHeaderChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnImageSourceChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsCheckedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsSelectedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsSelectedChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void

Called when IsSelected changed on this element or any descendant.

OnIsSubmenuOpenChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnItemContainerGeneratorStatusChanged ( object sender, EventArgs e ) : void
OnKeyTipAccessedThunk ( object sender, KeyTipAccessedEventArgs e ) : void
OnKeyTipChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnPopupOpened ( object sender, EventArgs e ) : void

ToolTip is always opened as soon as the cursor moves over it, it stays invisible for the duration of the InitialShowDelay. Because the submenu popup is opened with a delay, it covers up the tooltip. To avoid this, we disable ToolTipService, however ToolTIp service does not close previously opened tooltips when it is disabled. So we need to force it closed as soon as the popup comes up.

OnPopupResize ( object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
OnPopupResizeStarted ( object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e ) : void
OpenSubmenu ( ) : void
OpenSubmenuWithKeyboard ( ) : void
PlacePopup ( Size popupSize, Size targetSize, Point offset ) : System.Windows.Controls.Primitives.CustomPopupPlacement[]
ResizePopupInternal ( double newWidth, double newHeight ) : bool

Called from UIA Peers.

RibbonMenuItem ( ) : System

Initializes static members of the RibbonMenuItem class.

SetTimerToCloseSubmenu ( ) : void
SetTimerToOpenSubmenu ( ) : void
StartTimer ( DispatcherTimer timer ) : void
StopTimer ( DispatcherTimer &timer ) : void
SyncKeyTipAndContent ( ) : void
UpdateDropDownPosition ( object arg ) : object
UpdateIsPressed ( ) : void

메소드 상세

ClearContainerForItemOverride() 보호된 메소드

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

GetContainerForItemOverride() 보호된 메소드

protected GetContainerForItemOverride ( ) : DependencyObject
리턴 System.Windows.DependencyObject

IsItemItsOwnContainerOverride() 보호된 메소드

protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
리턴 bool

OnActivatingKeyTip() 보호된 메소드

protected OnActivatingKeyTip ( ActivatingKeyTipEventArgs e ) : void
e ActivatingKeyTipEventArgs
리턴 void

OnApplyTemplate() 공개 메소드

public OnApplyTemplate ( ) : void
리턴 void

OnClick() 보호된 메소드

protected OnClick ( ) : void
리턴 void

OnCreateAutomationPeer() 보호된 메소드

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
리턴 System.Windows.Automation.Peers.AutomationPeer

OnGotKeyboardFocus() 보호된 메소드

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

OnIsKeyboardFocusWithinChanged() 보호된 메소드

Called when the focus is no longer on or within this element.
protected OnIsKeyboardFocusWithinChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void

OnKeyDown() 보호된 메소드

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

OnKeyTipAccessed() 보호된 메소드

protected OnKeyTipAccessed ( KeyTipAccessedEventArgs e ) : void
e KeyTipAccessedEventArgs
리턴 void

OnLostKeyboardFocus() 보호된 메소드

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

OnMouseEnter() 보호된 메소드

RibbonMenuItems are hosted directly in a Menu, therefore TopLevelHeader should behave same as SubmenuHeader In base MenuItem ToplevelHeaders are opened immediately, but we want them to be opened after MenuShowDelay delay Therefore reimplement base.OnMouseEnter here.
protected OnMouseEnter ( System e ) : void
e System
리턴 void

OnMouseLeave() 보호된 메소드

base MenuItem closes submenu when mouse moves away. Therefore reimplement base.OnMouseLeave ourselves without closing submenu's.
protected OnMouseLeave ( System e ) : void
e System
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
리턴 void

OnMouseLeftButtonUp() 보호된 메소드

protected OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
리턴 void

OnPreviewKeyUp() 보호된 메소드

protected OnPreviewKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
리턴 void

PrepareContainerForItemOverride() 보호된 메소드

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

ShouldApplyItemContainerStyle() 보호된 메소드

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

프로퍼티 상세

CanAddToQuickAccessToolBarDirectlyProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for CanAddToQuickAccessToolBarDirectly property.
public static DependencyProperty,System.Windows CanAddToQuickAccessToolBarDirectlyProperty
리턴 System.Windows.DependencyProperty

CanUserResizeHorizontallyProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CanUserResizeHorizontallyProperty
리턴 System.Windows.DependencyProperty

CanUserResizeVerticallyProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CanUserResizeVerticallyProperty
리턴 System.Windows.DependencyProperty

CheckedBackgroundProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for CheckedBackground property.
public static DependencyProperty,System.Windows CheckedBackgroundProperty
리턴 System.Windows.DependencyProperty

CheckedBorderBrushProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for CheckedBorderBrush property.
public static DependencyProperty,System.Windows CheckedBorderBrushProperty
리턴 System.Windows.DependencyProperty

DropDownHeightProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DropDownHeightProperty
리턴 System.Windows.DependencyProperty

HasGalleryProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows HasGalleryProperty
리턴 System.Windows.DependencyProperty

ImageSourceProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ImageSource property.
public static DependencyProperty,System.Windows ImageSourceProperty
리턴 System.Windows.DependencyProperty

IsDropDownPositionedLeftProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsDropDownPositionedLeftProperty
리턴 System.Windows.DependencyProperty

ItemContainerTemplateSelectorProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ItemContainerTemplateSelector property.
public static DependencyProperty,System.Windows ItemContainerTemplateSelectorProperty
리턴 System.Windows.DependencyProperty

KeyTipProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for KeyTip property.
public static DependencyProperty,System.Windows KeyTipProperty
리턴 System.Windows.DependencyProperty

MouseOverBackgroundProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for MouseOverBackground property.
public static DependencyProperty,System.Windows MouseOverBackgroundProperty
리턴 System.Windows.DependencyProperty

MouseOverBorderBrushProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for MouseOverBorderBrush property.
public static DependencyProperty,System.Windows MouseOverBorderBrushProperty
리턴 System.Windows.DependencyProperty

PressedBackgroundProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for PressedBackground property.
public static DependencyProperty,System.Windows PressedBackgroundProperty
리턴 System.Windows.DependencyProperty

PressedBorderBrushProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for PressedBorderBrush property.
public static DependencyProperty,System.Windows PressedBorderBrushProperty
리턴 System.Windows.DependencyProperty

QuickAccessToolBarIdProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for QuickAccessToolBarId property.
public static DependencyProperty,System.Windows QuickAccessToolBarIdProperty
리턴 System.Windows.DependencyProperty

QuickAccessToolBarImageSourceProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for QuickAccessToolBarImageSource property.
public static DependencyProperty,System.Windows QuickAccessToolBarImageSourceProperty
리턴 System.Windows.DependencyProperty

RibbonProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for Ribbon property.
public static DependencyProperty,System.Windows RibbonProperty
리턴 System.Windows.DependencyProperty

ToolTipDescriptionProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipDescription property.
public static DependencyProperty,System.Windows ToolTipDescriptionProperty
리턴 System.Windows.DependencyProperty

ToolTipFooterDescriptionProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipFooterDescription property.
public static DependencyProperty,System.Windows ToolTipFooterDescriptionProperty
리턴 System.Windows.DependencyProperty

ToolTipFooterImageSourceProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipFooterImageSource property.
public static DependencyProperty,System.Windows ToolTipFooterImageSourceProperty
리턴 System.Windows.DependencyProperty

ToolTipFooterTitleProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipFooterTitle property.
public static DependencyProperty,System.Windows ToolTipFooterTitleProperty
리턴 System.Windows.DependencyProperty

ToolTipImageSourceProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipImageSource property.
public static DependencyProperty,System.Windows ToolTipImageSourceProperty
리턴 System.Windows.DependencyProperty

ToolTipTitleProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for ToolTipTitle property.
public static DependencyProperty,System.Windows ToolTipTitleProperty
리턴 System.Windows.DependencyProperty

UsesItemContainerTemplateProperty 공개적으로 정적으로 프로퍼티

DependencyProperty for UsesItemContainerTemplate property.
public static DependencyProperty,System.Windows UsesItemContainerTemplateProperty
리턴 System.Windows.DependencyProperty