Class
FieldListContextMenuBehavior

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:

cs-api-definition
public class FieldListContextMenuBehavior : AttachedBehavior

Inheritance: objectAttachedBehaviorFieldListContextMenuBehavior

Derived Classes: InlineFieldListContextMenuBehavior

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

Constructors

FieldListContextMenuBehavior()

Declaration

cs-api-definition
public FieldListContextMenuBehavior()

Fields

BehaviorProperty

Identifies the Behavior attached dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BehaviorProperty

Field Value

DependencyProperty

Properties

HideSubTotalsMenuItem

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

Declaration

cs-api-definition
public bool HideSubTotalsMenuItem { get; set; }

Property Value

bool

Methods

Attach(DependencyObject)

Attaches this behavior to the element.

Declaration

cs-api-definition
protected override void Attach(DependencyObject element)

Parameters

element

DependencyObject

Overrides AttachedBehavior.Attach(DependencyObject)

CreateContextMenu(object)

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

Declaration

cs-api-definition
protected virtual RadContextMenu CreateContextMenu(object dataContext)

Parameters

dataContext

object

The DataContext.

Returns

RadContextMenu

A RadContextMenu instance.

Detach(DependencyObject)

Removes this behavior from the element.

Declaration

cs-api-definition
protected override void Detach(DependencyObject element)

Parameters

element

DependencyObject

Overrides AttachedBehavior.Detach(DependencyObject)

GetBehavior(DependencyObject)

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

Declaration

cs-api-definition
public static FieldListContextMenuBehavior GetBehavior(DependencyObject obj)

Parameters

obj

DependencyObject

The object.

Returns

FieldListContextMenuBehavior

The value.

SetBehavior(DependencyObject, FieldListContextMenuBehavior)

Sets the Behavior attached property for the obj to value.

Declaration

cs-api-definition
public static void SetBehavior(DependencyObject obj, FieldListContextMenuBehavior value)

Parameters

obj

DependencyObject

The object.

value

FieldListContextMenuBehavior

The value.