New to Telerik UI for WPFStart a free 30-day trial

Provides data for the RequestContextMenu routed event.

Definition

Namespace:Telerik.Windows.Controls.FieldList

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

C#
public class ContextMenuRequestEventArgs : RoutedEventArgs

Inheritance: objectContextMenuRequestEventArgs

Constructors

Initializes a new instance of the ContextMenuRequestEventArgs class for the RequestContextMenu routed event.

C#
public ContextMenuRequestEventArgs(FrameworkElement contextMenuHost)
Parameters:contextMenuHostFrameworkElement

The element that will use the context menu.

Initializes a new instance of the ContextMenuRequestEventArgs class.

C#
protected ContextMenuRequestEventArgs(RoutedEvent routedEvent, FrameworkElement contextMenuHost)
Parameters:routedEventRoutedEvent

The routed event identifier for this instance of the RoutedEventArgs class.

contextMenuHostFrameworkElement

The element that will use the context menu.

Initializes a new instance of the ContextMenuRequestEventArgs class.

C#
protected ContextMenuRequestEventArgs(RoutedEvent routedEvent, object source, FrameworkElement contextMenuHost)
Parameters:routedEventRoutedEvent

The routed event identifier for this instance of the RoutedEventArgs class.

sourceobject

An alternate source that will be reported when the event is handled. This pre-populates the System.Windows.RoutedEventArgs.Source property.

contextMenuHostFrameworkElement

The element that will use the context menu.

Properties

Gets or sets the assigned context menu.

C#
public RadContextMenu ContextMenu { get; set; }

ContextMenuHost

FrameworkElement

Gets the element that will use the context menu.

C#
public FrameworkElement ContextMenuHost { get; }