ClassFieldListContextMenuBehavior
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:
public class FieldListContextMenuBehavior : AttachedBehavior
Inheritance: objectAttachedBehaviorFieldListContextMenuBehavior
Derived Classes:
Inherited Members
Constructors
FieldListContextMenuBehavior()
Declaration
public FieldListContextMenuBehavior()
Fields
BehaviorProperty
Identifies the Behavior attached dependency property.
Declaration
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.
Methods
Attach(DependencyObject)
Attaches this behavior to the element.
Declaration
protected override void Attach(DependencyObject element)
Parameters
element
DependencyObject
Overrides
CreateContextMenu(object)
Provide a context menu that would be displayed for the provided dataContext.
Declaration
protected virtual RadContextMenu CreateContextMenu(object dataContext)
Parameters
dataContext
The DataContext.
Returns
A RadContextMenu instance.
Detach(DependencyObject)
Removes this behavior from the element.
Declaration
protected override void Detach(DependencyObject element)
Parameters
element
DependencyObject
Overrides
GetBehavior(DependencyObject)
Gets the value of the Behavior attached property for the obj.
Declaration
public static FieldListContextMenuBehavior GetBehavior(DependencyObject obj)
Parameters
obj
DependencyObject
The object.
Returns
The value.
SetBehavior(DependencyObject, FieldListContextMenuBehavior)
Sets the Behavior attached property for the obj to value.
Declaration
public static void SetBehavior(DependencyObject obj, FieldListContextMenuBehavior value)
Parameters
obj
DependencyObject
The object.
value
The value.