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

A class that implements an attached behavior that handles RequestContextMenu events, providing a context menu.

Definition

Namespace:Telerik.Windows.Controls.FieldList

Assembly:Telerik.Windows.Controls.PivotFieldList.dll

Syntax:

C#
public class FieldListContextMenuBehavior : AttachedBehavior

Inheritance: objectAttachedBehaviorFieldListContextMenuBehavior

Derived Classes: InlineFieldListContextMenuBehavior

Inherited Members AttachedBehavior.Reattach(DependencyObject, DependencyPropertyChangedEventArgs)AttachedBehavior.RequestElementType<THost>(object)

Constructors

C#
public FieldListContextMenuBehavior()

Fields

BehaviorProperty

DependencyProperty

Identifies the Behavior attached dependency property.

C#
public static readonly DependencyProperty BehaviorProperty

Properties

Gets or sets value indicating whether to hide the Show SubTotals menu item from the ContextMenu.

C#
public bool HideSubTotalsMenuItem { get; set; }

Methods

Attaches this behavior to the element.

C#
protected override void Attach(DependencyObject element)
Parameters:elementDependencyObject

Overrides: AttachedBehavior.Attach(DependencyObject)

Provide a context menu that would be displayed for the provided dataContext.

C#
protected virtual RadContextMenu CreateContextMenu(object dataContext)
Parameters:dataContextobject

The DataContext.

Returns:

RadContextMenu

A RadContextMenu instance.

Removes this behavior from the element.

C#
protected override void Detach(DependencyObject element)
Parameters:elementDependencyObject

Overrides: AttachedBehavior.Detach(DependencyObject)

Gets the value of the Behavior attached property for the obj.

C#
public static FieldListContextMenuBehavior GetBehavior(DependencyObject obj)
Parameters:objDependencyObject

The object.

Returns:

FieldListContextMenuBehavior

The value.

Sets the Behavior attached property for the obj to value.

C#
public static void SetBehavior(DependencyObject obj, FieldListContextMenuBehavior value)
Parameters:objDependencyObject

The object.

valueFieldListContextMenuBehavior

The value.