Class FieldListContextMenuBehavior
A class that implements an attached behavior that handles RequestContextMenu events, providing a context menu.
Inherited Members
Namespace: Telerik.Windows.Controls.FieldList
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
public class FieldListContextMenuBehavior : AttachedBehavior
Constructors
FieldListContextMenuBehavior()
Declaration
public FieldListContextMenuBehavior()
Fields
BehaviorProperty
Identifies the Behavior attached dependency property.
Declaration
public static readonly DependencyProperty BehaviorProperty
Field Value
System.Windows.DependencyProperty
|
Properties
HideSubTotalsMenuItem
Gets or sets value indicating whether to hide the Show SubTotals menu item from the ContextMenu.
Declaration
public bool HideSubTotalsMenuItem { get; set; }
Property Value
System.Boolean
|
Methods
Attach(DependencyObject)
Attaches this behavior to the element
.
Declaration
protected override void Attach(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Overrides
CreateContextMenu(Object)
Provide a context menu that would be displayed for the provided dataContext
.
Declaration
protected virtual RadContextMenu CreateContextMenu(object dataContext)
Parameters
System.Object
dataContext
The DataContext. |
Returns
RadContextMenu
A RadContextMenu instance. |
Detach(DependencyObject)
Removes this behavior from the element
.
Declaration
protected override void Detach(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Overrides
GetBehavior(DependencyObject)
Gets the value of the Behavior attached property for the obj
.
Declaration
public static FieldListContextMenuBehavior GetBehavior(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The object. |
Returns
FieldListContextMenuBehavior
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
System.Windows.DependencyObject
obj
The object. |
FieldListContextMenuBehavior
value
The value. |