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
public FieldListContextMenuBehavior()
Fields
BehaviorProperty
DependencyProperty
Identifies the Behavior attached dependency property.
public static readonly DependencyProperty BehaviorProperty
Properties
Gets or sets value indicating whether to hide the Show SubTotals menu item from the ContextMenu.
public bool HideSubTotalsMenuItem { get; set; }
Methods
Attaches this behavior to the element.
protected override void Attach(DependencyObject element)
Overrides:
Provide a context menu that would be displayed for the provided dataContext.
protected virtual RadContextMenu CreateContextMenu(object dataContext)
The DataContext.
Returns:A RadContextMenu instance.
Removes this behavior from the element.
protected override void Detach(DependencyObject element)
Overrides:
Gets the value of the Behavior attached property for the obj.
public static FieldListContextMenuBehavior GetBehavior(DependencyObject obj)
The object.
Returns:The value.
Sets the Behavior attached property for the obj to value.
public static void SetBehavior(DependencyObject obj, FieldListContextMenuBehavior value)
The object.
valueFieldListContextMenuBehaviorThe value.