ClassRadialMenuTriggerBehavior
Behavior class that is used to control the triggers caused by the target element will attach and display the menu.
Definition
Namespace:Telerik.UI.Xaml.Controls.Navigation
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadialMenuTriggerBehavior : AttachableObject<FrameworkElement>
Inheritance: objectRadDependencyObjectAttachableObject<FrameworkElement>RadialMenuTriggerBehavior
Inherited Members
Constructors
RadialMenuTriggerBehavior()
Declaration
public RadialMenuTriggerBehavior()
Properties
AttachTriggers
Gets or sets the attach triggers that will attach and display the menu.
Declaration
public RadialMenuAttachTriggers AttachTriggers { get; set; }
Property Value
Example
<TextBlock Text="Some Text">
<telerikPrimitives:RadRadialContextMenu.Behavior>
<telerikPrimitives:RadialMenuTriggerBehavior AttachTriggers="PointerOver"/>
</telerikPrimitives:RadRadialContextMenu.Behavior>
<telerikPrimitives:RadRadialContextMenu.Menu>
<telerikPrimitives:RadRadialMenu/>
</telerikPrimitives:RadRadialContextMenu.Menu>
</TextBlock>
Methods
AttachToTargetElement()
It is used to position the RadRadialMenu and initiate menu position logic.
Declaration
protected virtual void AttachToTargetElement()
DetachFromTargetElement()
It is used to clear the RadRadialMenu from the visual scene and detach it from the target element.
Declaration
protected virtual void DetachFromTargetElement()
GetMenuPosition(RadRadialMenu)
Gets the desired menu position in global coordinates.
Declaration
protected virtual Point GetMenuPosition(RadRadialMenu menu)
Parameters
menu
The context menu.
Returns
Point
OnAttached()
Performs the core logic behind the Attach routine. Allows inheritors to provide additional implementation.
Declaration
protected override void OnAttached()
Overrides
OnDetached(FrameworkElement)
It is used to detach the previous RadRadialMenu owner control.
Declaration
protected override void OnDetached(FrameworkElement previousOwner)
Parameters
previousOwner
FrameworkElement
Overrides
SubscribeToTargetEvents(FrameworkElement)
Called when RadRadialMenu get its target element. It is used to subscribe the desired event action that will open the RadRadialMenu control.
Declaration
protected virtual void SubscribeToTargetEvents(FrameworkElement element)
Parameters
element
FrameworkElement
UnsubscribeFromTargetEvents(FrameworkElement)
Called when RadRadialMenu get its target element. It is used to unsubscribe the event actions that open the RadRadialMenu control.
Declaration
protected virtual void UnsubscribeFromTargetEvents(FrameworkElement element)
Parameters
element
FrameworkElement