Skip to content

FrameworkElementMarkupExtensions.ContextMenu<T> method

Sets the menu shown when the pointer is right-pressed over this element.

public static T ContextMenu<T>(this T target, ContextMenu? value)
where T : FrameworkElement
parameter description
T Receiver type.
target Target FrameworkElement.
value Value assigned to ContextMenu.

The same element for chaining.

Sets: FrameworkElement.ContextMenu