Click or drag to resize

ContextMenuItem Class

Brings an easy to use MenuItem to be used in the ContextMenu no matter if its in an own VisualTree or not.
Inheritance Hierarchy

Namespace:  SniffCore.Popups
Assembly:  SniffCore.Popups (in SniffCore.Popups.dll) Version: 1.1.0
Syntax
C#
public class ContextMenuItem : MenuItem

The ContextMenuItem type exposes the following members.

Constructors
  NameDescription
Public methodContextMenuItem
Initializes a new instance of the ContextMenuItem class
Top
Properties
  NameDescription
Public propertyActualHeight (Inherited from FrameworkElement.)
Public propertyActualWidth (Inherited from FrameworkElement.)
Public propertyAllowDrop (Inherited from UIElement.)
Public propertyAlternationCount (Inherited from ItemsControl.)
Public propertyAreAnyTouchesCaptured (Inherited from UIElement.)
Public propertyAreAnyTouchesCapturedWithin (Inherited from UIElement.)
Public propertyAreAnyTouchesDirectlyOver (Inherited from UIElement.)
Public propertyAreAnyTouchesOver (Inherited from UIElement.)
Public propertyBackground (Inherited from Control.)
Public propertyBindingGroup (Inherited from FrameworkElement.)
Public propertyBitmapEffect Obsolete. (Inherited from UIElement.)
Public propertyBitmapEffectInput Obsolete. (Inherited from UIElement.)
Public propertyBorderBrush (Inherited from Control.)
Public propertyBorderThickness (Inherited from Control.)
Public propertyCacheMode (Inherited from UIElement.)
Public propertyClip (Inherited from UIElement.)
Public propertyClipToBounds (Inherited from UIElement.)
Public propertyCommand (Inherited from MenuItem.)
Public propertyCommandBindings (Inherited from UIElement.)
Public propertyCommandParameter (Inherited from MenuItem.)
Public propertyCommandTarget (Inherited from MenuItem.)
Public propertyContextMenu (Inherited from FrameworkElement.)
Public propertyCursor (Inherited from FrameworkElement.)
Public propertyDataContext (Inherited from FrameworkElement.)
Protected propertyDefaultStyleKey (Inherited from FrameworkElement.)
Public propertyDependencyObjectType (Inherited from DependencyObject.)
Public propertyDesiredSize (Inherited from UIElement.)
Public propertyDispatcher (Inherited from DispatcherObject.)
Public propertyDisplayMemberPath (Inherited from ItemsControl.)
Public propertyEffect (Inherited from UIElement.)
Public propertyElementHolder
Proxy to catch up the original visual tree.
Public propertyFlowDirection (Inherited from FrameworkElement.)
Public propertyFocusable (Inherited from UIElement.)
Public propertyFocusVisualStyle (Inherited from FrameworkElement.)
Public propertyFontFamily (Inherited from Control.)
Public propertyFontSize (Inherited from Control.)
Public propertyFontStretch (Inherited from Control.)
Public propertyFontStyle (Inherited from Control.)
Public propertyFontWeight (Inherited from Control.)
Public propertyForceCursor (Inherited from FrameworkElement.)
Public propertyForeground (Inherited from Control.)
Public propertyGroupStyle (Inherited from ItemsControl.)
Public propertyGroupStyleSelector (Inherited from ItemsControl.)
Protected propertyHandlesScrolling (Inherited from MenuItem.)
Public propertyHasAnimatedProperties (Inherited from UIElement.)
Protected propertyHasEffectiveKeyboardFocus (Inherited from UIElement.)
Public propertyHasHeader (Inherited from HeaderedItemsControl.)
Public propertyHasItems (Inherited from ItemsControl.)
Public propertyHeader (Inherited from HeaderedItemsControl.)
Public propertyHeaderStringFormat (Inherited from HeaderedItemsControl.)
Public propertyHeaderTemplate (Inherited from HeaderedItemsControl.)
Public propertyHeaderTemplateSelector (Inherited from HeaderedItemsControl.)
Public propertyHeight (Inherited from FrameworkElement.)
Public propertyHorizontalAlignment (Inherited from FrameworkElement.)
Public propertyHorizontalContentAlignment (Inherited from Control.)
Public propertyIcon (Inherited from MenuItem.)
Protected propertyInheritanceBehavior (Inherited from FrameworkElement.)
Public propertyInputBindings (Inherited from UIElement.)
Public propertyInputGestureText (Inherited from MenuItem.)
Public propertyInputScope (Inherited from FrameworkElement.)
Public propertyIsArrangeValid (Inherited from UIElement.)
Public propertyIsBindToSelf
Keeps the DataContext on the original. Its the same value as in ItemDataContext.
Public propertyIsCheckable (Inherited from MenuItem.)
Public propertyIsChecked (Inherited from MenuItem.)
Public propertyIsEnabled (Inherited from UIElement.)
Protected propertyIsEnabledCore (Inherited from MenuItem.)
Public propertyIsFocused (Inherited from UIElement.)
Public propertyIsGrouping (Inherited from ItemsControl.)
Public propertyIsHighlighted (Inherited from MenuItem.)
Public propertyIsHitTestVisible (Inherited from UIElement.)
Public propertyIsInitialized (Inherited from FrameworkElement.)
Public propertyIsInputMethodEnabled (Inherited from UIElement.)
Public propertyIsKeyboardFocused (Inherited from UIElement.)
Public propertyIsKeyboardFocusWithin (Inherited from UIElement.)
Public propertyIsLoaded (Inherited from FrameworkElement.)
Public propertyIsManipulationEnabled (Inherited from UIElement.)
Public propertyIsMeasureValid (Inherited from UIElement.)
Public propertyIsMouseCaptured (Inherited from UIElement.)
Public propertyIsMouseCaptureWithin (Inherited from UIElement.)
Public propertyIsMouseDirectlyOver (Inherited from UIElement.)
Public propertyIsMouseOver (Inherited from UIElement.)
Public propertyIsPressed (Inherited from MenuItem.)
Public propertyIsSealed (Inherited from DependencyObject.)
Public propertyIsStylusCaptured (Inherited from UIElement.)
Public propertyIsStylusCaptureWithin (Inherited from UIElement.)
Public propertyIsStylusDirectlyOver (Inherited from UIElement.)
Public propertyIsStylusOver (Inherited from UIElement.)
Public propertyIsSubmenuOpen (Inherited from MenuItem.)
Public propertyIsSuspendingPopupAnimation (Inherited from MenuItem.)
Public propertyIsTabStop (Inherited from Control.)
Public propertyIsTextSearchCaseSensitive (Inherited from ItemsControl.)
Public propertyIsTextSearchEnabled (Inherited from ItemsControl.)
Public propertyIsVisible (Inherited from UIElement.)
Public propertyItemBindingGroup (Inherited from ItemsControl.)
Public propertyItemContainerGenerator (Inherited from ItemsControl.)
Public propertyItemContainerStyle (Inherited from ItemsControl.)
Public propertyItemContainerStyleSelector (Inherited from ItemsControl.)
Public propertyItemContainerTemplateSelector (Inherited from MenuItem.)
Public propertyItemDataContext
Gets or sets the item in the DataContext of the own visual tree.
Public propertyItems (Inherited from ItemsControl.)
Public propertyItemsPanel (Inherited from ItemsControl.)
Public propertyItemsSource (Inherited from ItemsControl.)
Public propertyItemStringFormat (Inherited from ItemsControl.)
Public propertyItemTemplate (Inherited from ItemsControl.)
Public propertyItemTemplateSelector (Inherited from ItemsControl.)
Public propertyLanguage (Inherited from FrameworkElement.)
Public propertyLayoutTransform (Inherited from FrameworkElement.)
Protected propertyLogicalChildren (Inherited from HeaderedItemsControl.)
Public propertyMargin (Inherited from FrameworkElement.)
Public propertyMaxHeight (Inherited from FrameworkElement.)
Public propertyMaxWidth (Inherited from FrameworkElement.)
Public propertyMinHeight (Inherited from FrameworkElement.)
Public propertyMinWidth (Inherited from FrameworkElement.)
Public propertyName (Inherited from FrameworkElement.)
Public propertyOpacity (Inherited from UIElement.)
Public propertyOpacityMask (Inherited from UIElement.)
Public propertyOverridesDefaultStyle (Inherited from FrameworkElement.)
Public propertyPadding (Inherited from Control.)
Public propertyParent (Inherited from FrameworkElement.)
Public propertyPersistId Obsolete. (Inherited from UIElement.)
Public propertyRenderSize (Inherited from UIElement.)
Public propertyRenderTransform (Inherited from UIElement.)
Public propertyRenderTransformOrigin (Inherited from UIElement.)
Public propertyResources (Inherited from FrameworkElement.)
Public propertyRole (Inherited from MenuItem.)
Public propertySnapsToDevicePixels (Inherited from UIElement.)
Public propertyStaysOpenOnClick (Inherited from MenuItem.)
Public propertyStyle (Inherited from FrameworkElement.)
Protected propertyStylusPlugIns (Inherited from UIElement.)
Public propertyTabIndex (Inherited from Control.)
Public propertyTag (Inherited from FrameworkElement.)
Public propertyTemplate (Inherited from Control.)
Public propertyTemplatedParent (Inherited from FrameworkElement.)
Public propertyToolTip (Inherited from FrameworkElement.)
Public propertyTouchesCaptured (Inherited from UIElement.)
Public propertyTouchesCapturedWithin (Inherited from UIElement.)
Public propertyTouchesDirectlyOver (Inherited from UIElement.)
Public propertyTouchesOver (Inherited from UIElement.)
Public propertyTriggers (Inherited from FrameworkElement.)
Public propertyUid (Inherited from UIElement.)
Public propertyUseLayoutRounding (Inherited from FrameworkElement.)
Public propertyUsesItemContainerTemplate (Inherited from MenuItem.)
Public propertyVerticalAlignment (Inherited from FrameworkElement.)
Public propertyVerticalContentAlignment (Inherited from Control.)
Public propertyVisibility (Inherited from UIElement.)
Protected propertyVisualBitmapEffect Obsolete. (Inherited from Visual.)
Protected propertyVisualBitmapEffectInput Obsolete. (Inherited from Visual.)
Protected propertyVisualBitmapScalingMode (Inherited from Visual.)
Protected propertyVisualCacheMode (Inherited from Visual.)
Protected propertyVisualChildrenCount (Inherited from FrameworkElement.)
Protected propertyVisualClearTypeHint (Inherited from Visual.)
Protected propertyVisualClip (Inherited from Visual.)
Protected propertyVisualEdgeMode (Inherited from Visual.)
Protected propertyVisualEffect (Inherited from Visual.)
Protected propertyVisualOffset (Inherited from Visual.)
Protected propertyVisualOpacity (Inherited from Visual.)
Protected propertyVisualOpacityMask (Inherited from Visual.)
Protected propertyVisualParent (Inherited from Visual.)
Protected propertyVisualScrollableAreaClip (Inherited from Visual.)
Protected propertyVisualTextHintingMode (Inherited from Visual.)
Protected propertyVisualTextRenderingMode (Inherited from Visual.)
Protected propertyVisualTransform (Inherited from Visual.)
Protected propertyVisualXSnappingGuidelines (Inherited from Visual.)
Protected propertyVisualYSnappingGuidelines (Inherited from Visual.)
Public propertyWidth (Inherited from FrameworkElement.)
Top
Methods
  NameDescription
Protected methodAddChild (Inherited from ItemsControl.)
Public methodAddHandler(RoutedEvent, Delegate) (Inherited from UIElement.)
Public methodAddHandler(RoutedEvent, Delegate, Boolean) (Inherited from UIElement.)
Protected methodAddLogicalChild (Inherited from FrameworkElement.)
Protected methodAddText (Inherited from ItemsControl.)
Public methodAddToEventRoute (Inherited from UIElement.)
Protected methodAddVisualChild (Inherited from Visual.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock) (Inherited from UIElement.)
Public methodApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) (Inherited from UIElement.)
Public methodApplyTemplate (Inherited from FrameworkElement.)
Public methodArrange (Inherited from UIElement.)
Protected methodArrangeCore (Inherited from FrameworkElement.)
Protected methodArrangeOverride (Inherited from Control.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline) (Inherited from UIElement.)
Public methodBeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) (Inherited from UIElement.)
Public methodBeginInit (Inherited from ItemsControl.)
Public methodBeginStoryboard(Storyboard) (Inherited from FrameworkElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior) (Inherited from FrameworkElement.)
Public methodBeginStoryboard(Storyboard, HandoffBehavior, Boolean) (Inherited from FrameworkElement.)
Public methodBringIntoView (Inherited from FrameworkElement.)
Public methodBringIntoView(Rect) (Inherited from FrameworkElement.)
Public methodCaptureMouse (Inherited from UIElement.)
Public methodCaptureStylus (Inherited from UIElement.)
Public methodCaptureTouch (Inherited from UIElement.)
Protected methodClearContainerForItemOverride (Inherited from ItemsControl.)
Public methodClearValue(DependencyProperty) (Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey) (Inherited from DependencyObject.)
Public methodCoerceValue (Inherited from DependencyObject.)
Public methodContainerFromElement (Inherited from ItemsControl.)
Public methodEndInit (Inherited from ItemsControl.)
Public methodEquals (Inherited from DependencyObject.)
Protected methodFinalize (Inherited from Object.)
Public methodFindCommonVisualAncestor (Inherited from Visual.)
Public methodFindName (Inherited from FrameworkElement.)
Public methodFindResource (Inherited from FrameworkElement.)
Public methodFocus (Inherited from UIElement.)
Public methodGetAnimationBaseValue (Inherited from UIElement.)
Public methodGetBindingExpression (Inherited from FrameworkElement.)
Protected methodGetContainerForItemOverride (Inherited from MenuItem.)
Public methodGetHashCode (Inherited from DependencyObject.)
Protected methodGetLayoutClip (Inherited from FrameworkElement.)
Public methodGetLocalValueEnumerator (Inherited from DependencyObject.)
Protected methodGetTemplateChild (Inherited from FrameworkElement.)
Public methodGetType (Inherited from Object.)
Protected methodGetUIParentCore (Inherited from FrameworkElement.)
Public methodGetValue (Inherited from DependencyObject.)
Protected methodGetVisualChild (Inherited from FrameworkElement.)
Protected methodHitTestCore(PointHitTestParameters) (Inherited from UIElement.)
Protected methodHitTestCore(GeometryHitTestParameters) (Inherited from UIElement.)
Public methodInputHitTest (Inherited from UIElement.)
Public methodInvalidateArrange (Inherited from UIElement.)
Public methodInvalidateMeasure (Inherited from UIElement.)
Public methodInvalidateProperty (Inherited from DependencyObject.)
Public methodInvalidateVisual (Inherited from UIElement.)
Public methodIsAncestorOf (Inherited from Visual.)
Public methodIsDescendantOf (Inherited from Visual.)
Public methodIsItemItsOwnContainer (Inherited from ItemsControl.)
Protected methodIsItemItsOwnContainerOverride (Inherited from MenuItem.)
Public methodMeasure (Inherited from UIElement.)
Protected methodMeasureCore (Inherited from FrameworkElement.)
Protected methodMeasureOverride (Inherited from Control.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMoveFocus (Inherited from FrameworkElement.)
Protected methodOnAccessKey (Inherited from MenuItem.)
Protected methodOnAlternationCountChanged (Inherited from ItemsControl.)
Public methodOnApplyTemplate (Inherited from MenuItem.)
Protected methodOnChecked (Inherited from MenuItem.)
Protected methodOnChildDesiredSizeChanged (Inherited from UIElement.)
Protected methodOnClick (Inherited from MenuItem.)
Protected methodOnContextMenuClosing (Inherited from FrameworkElement.)
Protected methodOnContextMenuOpening (Inherited from FrameworkElement.)
Protected methodOnCreateAutomationPeer (Inherited from MenuItem.)
Protected methodOnDisplayMemberPathChanged (Inherited from ItemsControl.)
Protected methodOnDpiChanged (Inherited from Visual.)
Protected methodOnDragEnter (Inherited from UIElement.)
Protected methodOnDragLeave (Inherited from UIElement.)
Protected methodOnDragOver (Inherited from UIElement.)
Protected methodOnDrop (Inherited from UIElement.)
Protected methodOnGiveFeedback (Inherited from UIElement.)
Protected methodOnGotFocus (Inherited from FrameworkElement.)
Protected methodOnGotKeyboardFocus (Inherited from MenuItem.)
Protected methodOnGotMouseCapture (Inherited from UIElement.)
Protected methodOnGotStylusCapture (Inherited from UIElement.)
Protected methodOnGotTouchCapture (Inherited from UIElement.)
Protected methodOnGroupStyleSelectorChanged (Inherited from ItemsControl.)
Protected methodOnHeaderChanged (Inherited from HeaderedItemsControl.)
Protected methodOnHeaderStringFormatChanged (Inherited from HeaderedItemsControl.)
Protected methodOnHeaderTemplateChanged (Inherited from HeaderedItemsControl.)
Protected methodOnHeaderTemplateSelectorChanged (Inherited from HeaderedItemsControl.)
Protected methodOnInitialized
Initialized the ContextMenuItem.
(Overrides MenuItemOnInitialized(EventArgs).)
Protected methodOnIsKeyboardFocusedChanged (Inherited from UIElement.)
Protected methodOnIsKeyboardFocusWithinChanged (Inherited from MenuItem.)
Protected methodOnIsMouseCapturedChanged (Inherited from UIElement.)
Protected methodOnIsMouseCaptureWithinChanged (Inherited from UIElement.)
Protected methodOnIsMouseDirectlyOverChanged (Inherited from UIElement.)
Protected methodOnIsStylusCapturedChanged (Inherited from UIElement.)
Protected methodOnIsStylusCaptureWithinChanged (Inherited from UIElement.)
Protected methodOnIsStylusDirectlyOverChanged (Inherited from UIElement.)
Protected methodOnItemBindingGroupChanged (Inherited from ItemsControl.)
Protected methodOnItemContainerStyleChanged (Inherited from ItemsControl.)
Protected methodOnItemContainerStyleSelectorChanged (Inherited from ItemsControl.)
Protected methodOnItemsChanged (Inherited from MenuItem.)
Protected methodOnItemsPanelChanged (Inherited from ItemsControl.)
Protected methodOnItemsSourceChanged (Inherited from ItemsControl.)
Protected methodOnItemStringFormatChanged (Inherited from ItemsControl.)
Protected methodOnItemTemplateChanged (Inherited from ItemsControl.)
Protected methodOnItemTemplateSelectorChanged (Inherited from ItemsControl.)
Protected methodOnKeyDown (Inherited from MenuItem.)
Protected methodOnKeyUp (Inherited from UIElement.)
Protected methodOnLostFocus (Inherited from UIElement.)
Protected methodOnLostKeyboardFocus (Inherited from UIElement.)
Protected methodOnLostMouseCapture (Inherited from UIElement.)
Protected methodOnLostStylusCapture (Inherited from UIElement.)
Protected methodOnLostTouchCapture (Inherited from UIElement.)
Protected methodOnManipulationBoundaryFeedback (Inherited from UIElement.)
Protected methodOnManipulationCompleted (Inherited from UIElement.)
Protected methodOnManipulationDelta (Inherited from UIElement.)
Protected methodOnManipulationInertiaStarting (Inherited from UIElement.)
Protected methodOnManipulationStarted (Inherited from UIElement.)
Protected methodOnManipulationStarting (Inherited from UIElement.)
Protected methodOnMouseDoubleClick (Inherited from Control.)
Protected methodOnMouseDown (Inherited from UIElement.)
Protected methodOnMouseEnter (Inherited from MenuItem.)
Protected methodOnMouseLeave (Inherited from MenuItem.)
Protected methodOnMouseLeftButtonDown (Inherited from MenuItem.)
Protected methodOnMouseLeftButtonUp (Inherited from MenuItem.)
Protected methodOnMouseMove (Inherited from MenuItem.)
Protected methodOnMouseRightButtonDown (Inherited from MenuItem.)
Protected methodOnMouseRightButtonUp (Inherited from MenuItem.)
Protected methodOnMouseUp (Inherited from UIElement.)
Protected methodOnMouseWheel (Inherited from UIElement.)
Protected methodOnPreviewDragEnter (Inherited from UIElement.)
Protected methodOnPreviewDragLeave (Inherited from UIElement.)
Protected methodOnPreviewDragOver (Inherited from UIElement.)
Protected methodOnPreviewDrop (Inherited from UIElement.)
Protected methodOnPreviewGiveFeedback (Inherited from UIElement.)
Protected methodOnPreviewGotKeyboardFocus (Inherited from UIElement.)
Protected methodOnPreviewKeyDown (Inherited from UIElement.)
Protected methodOnPreviewKeyUp (Inherited from UIElement.)
Protected methodOnPreviewLostKeyboardFocus (Inherited from UIElement.)
Protected methodOnPreviewMouseDoubleClick (Inherited from Control.)
Protected methodOnPreviewMouseDown (Inherited from UIElement.)
Protected methodOnPreviewMouseLeftButtonDown (Inherited from UIElement.)
Protected methodOnPreviewMouseLeftButtonUp (Inherited from UIElement.)
Protected methodOnPreviewMouseMove (Inherited from UIElement.)
Protected methodOnPreviewMouseRightButtonDown (Inherited from UIElement.)
Protected methodOnPreviewMouseRightButtonUp (Inherited from UIElement.)
Protected methodOnPreviewMouseUp (Inherited from UIElement.)
Protected methodOnPreviewMouseWheel (Inherited from UIElement.)
Protected methodOnPreviewQueryContinueDrag (Inherited from UIElement.)
Protected methodOnPreviewStylusButtonDown (Inherited from UIElement.)
Protected methodOnPreviewStylusButtonUp (Inherited from UIElement.)
Protected methodOnPreviewStylusDown (Inherited from UIElement.)
Protected methodOnPreviewStylusInAirMove (Inherited from UIElement.)
Protected methodOnPreviewStylusInRange (Inherited from UIElement.)
Protected methodOnPreviewStylusMove (Inherited from UIElement.)
Protected methodOnPreviewStylusOutOfRange (Inherited from UIElement.)
Protected methodOnPreviewStylusSystemGesture (Inherited from UIElement.)
Protected methodOnPreviewStylusUp (Inherited from UIElement.)
Protected methodOnPreviewTextInput (Inherited from UIElement.)
Protected methodOnPreviewTouchDown (Inherited from UIElement.)
Protected methodOnPreviewTouchMove (Inherited from UIElement.)
Protected methodOnPreviewTouchUp (Inherited from UIElement.)
Protected methodOnPropertyChanged (Inherited from FrameworkElement.)
Protected methodOnQueryContinueDrag (Inherited from UIElement.)
Protected methodOnQueryCursor (Inherited from UIElement.)
Protected methodOnRender (Inherited from UIElement.)
Protected methodOnRenderSizeChanged (Inherited from FrameworkElement.)
Protected methodOnStyleChanged (Inherited from FrameworkElement.)
Protected methodOnStylusButtonDown (Inherited from UIElement.)
Protected methodOnStylusButtonUp (Inherited from UIElement.)
Protected methodOnStylusDown (Inherited from UIElement.)
Protected methodOnStylusEnter (Inherited from UIElement.)
Protected methodOnStylusInAirMove (Inherited from UIElement.)
Protected methodOnStylusInRange (Inherited from UIElement.)
Protected methodOnStylusLeave (Inherited from UIElement.)
Protected methodOnStylusMove (Inherited from UIElement.)
Protected methodOnStylusOutOfRange (Inherited from UIElement.)
Protected methodOnStylusSystemGesture (Inherited from UIElement.)
Protected methodOnStylusUp (Inherited from UIElement.)
Protected methodOnSubmenuClosed (Inherited from MenuItem.)
Protected methodOnSubmenuOpened (Inherited from MenuItem.)
Protected methodOnTemplateChanged (Inherited from Control.)
Protected methodOnTextInput (Inherited from ItemsControl.)
Protected methodOnToolTipClosing (Inherited from FrameworkElement.)
Protected methodOnToolTipOpening (Inherited from FrameworkElement.)
Protected methodOnTouchDown (Inherited from UIElement.)
Protected methodOnTouchEnter (Inherited from UIElement.)
Protected methodOnTouchLeave (Inherited from UIElement.)
Protected methodOnTouchMove (Inherited from UIElement.)
Protected methodOnTouchUp (Inherited from UIElement.)
Protected methodOnUnchecked (Inherited from MenuItem.)
Protected methodOnVisualChildrenChanged (Inherited from Visual.)
Protected methodOnVisualParentChanged (Inherited from MenuItem.)
Protected methodParentLayoutInvalidated (Inherited from FrameworkElement.)
Public methodPointFromScreen (Inherited from Visual.)
Public methodPointToScreen (Inherited from Visual.)
Public methodPredictFocus (Inherited from FrameworkElement.)
Protected methodPrepareContainerForItemOverride (Inherited from MenuItem.)
Public methodRaiseEvent (Inherited from UIElement.)
Public methodReadLocalValue (Inherited from DependencyObject.)
Public methodRegisterName (Inherited from FrameworkElement.)
Public methodReleaseAllTouchCaptures (Inherited from UIElement.)
Public methodReleaseMouseCapture (Inherited from UIElement.)
Public methodReleaseStylusCapture (Inherited from UIElement.)
Public methodReleaseTouchCapture (Inherited from UIElement.)
Public methodRemoveHandler (Inherited from UIElement.)
Protected methodRemoveLogicalChild (Inherited from FrameworkElement.)
Protected methodRemoveVisualChild (Inherited from Visual.)
Public methodSetBinding(DependencyProperty, BindingBase) (Inherited from FrameworkElement.)
Public methodSetBinding(DependencyProperty, String) (Inherited from FrameworkElement.)
Public methodSetCurrentValue (Inherited from DependencyObject.)
Public methodSetResourceReference (Inherited from FrameworkElement.)
Public methodSetValue(DependencyProperty, Object) (Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object) (Inherited from DependencyObject.)
Protected methodShouldApplyItemContainerStyle (Inherited from MenuItem.)
Protected methodShouldSerializeProperty (Inherited from DependencyObject.)
Public methodToString (Inherited from HeaderedItemsControl.)
Public methodTransformToAncestor(Visual) (Inherited from Visual.)
Public methodTransformToAncestor(Visual3D) (Inherited from Visual.)
Public methodTransformToDescendant (Inherited from Visual.)
Public methodTransformToVisual (Inherited from Visual.)
Public methodTranslatePoint (Inherited from UIElement.)
Public methodTryFindResource (Inherited from FrameworkElement.)
Public methodUnregisterName (Inherited from FrameworkElement.)
Public methodUpdateDefaultStyle (Inherited from FrameworkElement.)
Public methodUpdateLayout (Inherited from UIElement.)
Top
Events
  NameDescription
Public eventChecked (Inherited from MenuItem.)
Public eventClick (Inherited from MenuItem.)
Public eventContextMenuClosing (Inherited from FrameworkElement.)
Public eventContextMenuOpening (Inherited from FrameworkElement.)
Public eventDataContextChanged (Inherited from FrameworkElement.)
Public eventDragEnter (Inherited from UIElement.)
Public eventDragLeave (Inherited from UIElement.)
Public eventDragOver (Inherited from UIElement.)
Public eventDrop (Inherited from UIElement.)
Public eventFocusableChanged (Inherited from UIElement.)
Public eventGiveFeedback (Inherited from UIElement.)
Public eventGotFocus (Inherited from UIElement.)
Public eventGotKeyboardFocus (Inherited from UIElement.)
Public eventGotMouseCapture (Inherited from UIElement.)
Public eventGotStylusCapture (Inherited from UIElement.)
Public eventGotTouchCapture (Inherited from UIElement.)
Public eventInitialized (Inherited from FrameworkElement.)
Public eventIsEnabledChanged (Inherited from UIElement.)
Public eventIsHitTestVisibleChanged (Inherited from UIElement.)
Public eventIsKeyboardFocusedChanged (Inherited from UIElement.)
Public eventIsKeyboardFocusWithinChanged (Inherited from UIElement.)
Public eventIsMouseCapturedChanged (Inherited from UIElement.)
Public eventIsMouseCaptureWithinChanged (Inherited from UIElement.)
Public eventIsMouseDirectlyOverChanged (Inherited from UIElement.)
Public eventIsStylusCapturedChanged (Inherited from UIElement.)
Public eventIsStylusCaptureWithinChanged (Inherited from UIElement.)
Public eventIsStylusDirectlyOverChanged (Inherited from UIElement.)
Public eventIsVisibleChanged (Inherited from UIElement.)
Public eventKeyDown (Inherited from UIElement.)
Public eventKeyUp (Inherited from UIElement.)
Public eventLayoutUpdated (Inherited from UIElement.)
Public eventLoaded (Inherited from FrameworkElement.)
Public eventLostFocus (Inherited from UIElement.)
Public eventLostKeyboardFocus (Inherited from UIElement.)
Public eventLostMouseCapture (Inherited from UIElement.)
Public eventLostStylusCapture (Inherited from UIElement.)
Public eventLostTouchCapture (Inherited from UIElement.)
Public eventManipulationBoundaryFeedback (Inherited from UIElement.)
Public eventManipulationCompleted (Inherited from UIElement.)
Public eventManipulationDelta (Inherited from UIElement.)
Public eventManipulationInertiaStarting (Inherited from UIElement.)
Public eventManipulationStarted (Inherited from UIElement.)
Public eventManipulationStarting (Inherited from UIElement.)
Public eventMouseDoubleClick (Inherited from Control.)
Public eventMouseDown (Inherited from UIElement.)
Public eventMouseEnter (Inherited from UIElement.)
Public eventMouseLeave (Inherited from UIElement.)
Public eventMouseLeftButtonDown (Inherited from UIElement.)
Public eventMouseLeftButtonUp (Inherited from UIElement.)
Public eventMouseMove (Inherited from UIElement.)
Public eventMouseRightButtonDown (Inherited from UIElement.)
Public eventMouseRightButtonUp (Inherited from UIElement.)
Public eventMouseUp (Inherited from UIElement.)
Public eventMouseWheel (Inherited from UIElement.)
Public eventPreviewDragEnter (Inherited from UIElement.)
Public eventPreviewDragLeave (Inherited from UIElement.)
Public eventPreviewDragOver (Inherited from UIElement.)
Public eventPreviewDrop (Inherited from UIElement.)
Public eventPreviewGiveFeedback (Inherited from UIElement.)
Public eventPreviewGotKeyboardFocus (Inherited from UIElement.)
Public eventPreviewKeyDown (Inherited from UIElement.)
Public eventPreviewKeyUp (Inherited from UIElement.)
Public eventPreviewLostKeyboardFocus (Inherited from UIElement.)
Public eventPreviewMouseDoubleClick (Inherited from Control.)
Public eventPreviewMouseDown (Inherited from UIElement.)
Public eventPreviewMouseLeftButtonDown (Inherited from UIElement.)
Public eventPreviewMouseLeftButtonUp (Inherited from UIElement.)
Public eventPreviewMouseMove (Inherited from UIElement.)
Public eventPreviewMouseRightButtonDown (Inherited from UIElement.)
Public eventPreviewMouseRightButtonUp (Inherited from UIElement.)
Public eventPreviewMouseUp (Inherited from UIElement.)
Public eventPreviewMouseWheel (Inherited from UIElement.)
Public eventPreviewQueryContinueDrag (Inherited from UIElement.)
Public eventPreviewStylusButtonDown (Inherited from UIElement.)
Public eventPreviewStylusButtonUp (Inherited from UIElement.)
Public eventPreviewStylusDown (Inherited from UIElement.)
Public eventPreviewStylusInAirMove (Inherited from UIElement.)
Public eventPreviewStylusInRange (Inherited from UIElement.)
Public eventPreviewStylusMove (Inherited from UIElement.)
Public eventPreviewStylusOutOfRange (Inherited from UIElement.)
Public eventPreviewStylusSystemGesture (Inherited from UIElement.)
Public eventPreviewStylusUp (Inherited from UIElement.)
Public eventPreviewTextInput (Inherited from UIElement.)
Public eventPreviewTouchDown (Inherited from UIElement.)
Public eventPreviewTouchMove (Inherited from UIElement.)
Public eventPreviewTouchUp (Inherited from UIElement.)
Public eventQueryContinueDrag (Inherited from UIElement.)
Public eventQueryCursor (Inherited from UIElement.)
Public eventRequestBringIntoView (Inherited from FrameworkElement.)
Public eventSizeChanged (Inherited from FrameworkElement.)
Public eventSourceUpdated (Inherited from FrameworkElement.)
Public eventStylusButtonDown (Inherited from UIElement.)
Public eventStylusButtonUp (Inherited from UIElement.)
Public eventStylusDown (Inherited from UIElement.)
Public eventStylusEnter (Inherited from UIElement.)
Public eventStylusInAirMove (Inherited from UIElement.)
Public eventStylusInRange (Inherited from UIElement.)
Public eventStylusLeave (Inherited from UIElement.)
Public eventStylusMove (Inherited from UIElement.)
Public eventStylusOutOfRange (Inherited from UIElement.)
Public eventStylusSystemGesture (Inherited from UIElement.)
Public eventStylusUp (Inherited from UIElement.)
Public eventSubmenuClosed (Inherited from MenuItem.)
Public eventSubmenuOpened (Inherited from MenuItem.)
Public eventTargetUpdated (Inherited from FrameworkElement.)
Public eventTextInput (Inherited from UIElement.)
Public eventToolTipClosing (Inherited from FrameworkElement.)
Public eventToolTipOpening (Inherited from FrameworkElement.)
Public eventTouchDown (Inherited from UIElement.)
Public eventTouchEnter (Inherited from UIElement.)
Public eventTouchLeave (Inherited from UIElement.)
Public eventTouchMove (Inherited from UIElement.)
Public eventTouchUp (Inherited from UIElement.)
Public eventUnchecked (Inherited from MenuItem.)
Public eventUnloaded (Inherited from FrameworkElement.)
Top
Fields
  NameDescription
Public fieldStatic memberElementHolderProperty
The DependencyProperty for the Title ElementHolder.
Public fieldStatic memberIsBindToSelfProperty
The DependencyProperty for the Title IsBindToSelf.
Public fieldStatic memberItemDataContextProperty
The DependencyProperty for the Title ItemDataContext.
Top
Extension Methods
  NameDescription
Public Extension MethodIsNullOrEmpty
Checks if the object is null or an empty string.
(Defined by ObjectEx.)
Public Extension MethodIsNullOrWhiteSpace
Checks if the object is null, an empty string or a string which consists of whitespace (or tabs) only.
(Defined by ObjectEx.)
Top
Examples
XAML
<TextBlock Text="{Binding Name}">
    <TextBlock.ContextMenu>
        <ContextMenu>
            <Toolkit:ContextMenuItem Header="Edit Global"
                                     Command="{Binding EditCommand}"
                                     CommandParameter="{Binding ItemDataContext, RelativeSource={RelativeSource Self}}" />
            <Toolkit:ContextMenuItem Header="Edit Directly"
                                     IsBindToSelf="True"
                                     Command="{Binding EditCommand}" />
        </ContextMenu>
    </TextBlock.ContextMenu>
</TextBlock>
See Also