ClassRadRadialMenu
Represents a control that enables a user to visualize a set of RadialMenuItem.
Definition
Namespace:Telerik.UI.Xaml.Controls.Navigation
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadRadialMenu : RadControl
Inheritance: objectRadControlRadRadialMenu
Inherited Members
Constructors
RadRadialMenu()
Initializes a new instance of the RadRadialMenu class.
Declaration
public RadRadialMenu()
Fields
ContentMenuBackgroundStyleProperty
Identifies the ContentMenuBackgroundStyle dependency property.
Declaration
public static readonly DependencyProperty ContentMenuBackgroundStyleProperty
Field Value
DependencyProperty
InnerNavigationRadiusFactorProperty
Identifies the InnerNavigationRadiusFactor dependency property.
Declaration
public static readonly DependencyProperty InnerNavigationRadiusFactorProperty
Field Value
DependencyProperty
InnerRadiusFactorProperty
Identifies the InnerRadiusFactor dependency property.
Declaration
public static readonly DependencyProperty InnerRadiusFactorProperty
Field Value
DependencyProperty
IsOpenProperty
Identifies the IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
DependencyProperty
NavigationMenuBackgroundStyleProperty
Identifies the ContentMenuBackgroundStyle dependency property.
Declaration
public static readonly DependencyProperty NavigationMenuBackgroundStyleProperty
Field Value
DependencyProperty
OuterRadiusFactorProperty
Identifies the OuterRadiusFactor dependency property.
Declaration
public static readonly DependencyProperty OuterRadiusFactorProperty
Field Value
DependencyProperty
ShowToolTipProperty
Identifies the ShowToolTip dependency property.
Declaration
public static readonly DependencyProperty ShowToolTipProperty
Field Value
DependencyProperty
StartAngleProperty
Identifies the StartAngle dependency property.
Declaration
public static readonly DependencyProperty StartAngleProperty
Field Value
DependencyProperty
Properties
CommandService
Gets the CommandService instance that manages the commanding behavior of this instance.
Declaration
public CommandService CommandService { get; }
Property Value
Commands
Gets the collection with all the custom commands registered with the CommandService.
Declaration
public CommandCollection<RadRadialMenu> Commands { get; }
Property Value
Remarks
Custom commands have higher priority than the built-in (default) ones.
ContentMenuBackgroundStyle
Gets or sets the Style value that defines the appearance of the menu items panel.
Declaration
public Style ContentMenuBackgroundStyle { get; set; }
Property Value
Style
Remarks
The Style should target the type.
Example
<telerikPrimitives:RadRadialMenu>
<telerikPrimitives:RadRadialMenu.ContentMenuBackgroundStyle>
<Style TargetType="Rectangle">
<Setter Property="Fill" Value="LightGreen"/>
</Style>
</telerikPrimitives:RadRadialMenu.ContentMenuBackgroundStyle>
</telerikPrimitives:RadRadialMenu>
InnerNavigationRadiusFactor
Gets or sets the factor that defines the inner radius of the panel holding the NavigationItemButton items as a fraction of the size of the RadRadialMenu control.
Declaration
public double InnerNavigationRadiusFactor { get; set; }
Property Value
The value should be between 0 and 1. If the passed value lies outside this range, it is automatically set to the nearest boundary value.
Example
<telerikPrimitives:RadRadialMenu InnerNavigationRadiusFactor="0.3"/>
InnerRadiusFactor
Gets or sets the factor that defines the inner radius of the panel holding the RadialMenuItemControl items as a fraction of the size of the RadRadialMenu control.
Declaration
public double InnerRadiusFactor { get; set; }
Property Value
The value should be between 0 and 1. If the passed value lies outside this range, it is automatically set to the nearest boundary value.
Example
<telerikPrimitives:RadRadialMenu InnerRadiusFactor="0.3"/>
IsOpen
Gets or sets a value indicating whether the RadRadialMenu is open.
Declaration
public bool IsOpen { get; set; }
Property Value
Example
<telerikPrimitives:RadRadialMenu IsOpen="True"/>
Items
Gets the collection of all RadialMenuItem.
Declaration
public BindableCollection<RadialMenuItem> Items { get; }
Property Value
Example
<telerikPrimitives:RadRadialMenu x:Name="radialMenu">
<telerikPrimitives:RadialMenuItem Header="Item 1"/>
<telerikPrimitives:RadialMenuItem Header="Item 2"/>
<telerikPrimitives:RadialMenuItem Header="Item 3"/>
</telerikPrimitives:RadRadialMenu>
var items = this.radialMenu.Items;
NavigationMenuBackgroundStyle
Gets or sets the Style value that defines the appearance of the navigation buttons panel.
Declaration
public Style NavigationMenuBackgroundStyle { get; set; }
Property Value
Style
Remarks
The Style should target the type.
Example
<telerikPrimitives:RadRadialMenu>
<telerikPrimitives:RadRadialMenu.NavigationMenuBackgroundStyle>
<Style TargetType="Rectangle">
<Setter Property="Fill" Value="LightGreen"/>
</Style>
</telerikPrimitives:RadRadialMenu.NavigationMenuBackgroundStyle>
</telerikPrimitives:RadRadialMenu>
OuterRadiusFactor
Gets or sets the factor that defines the outer radius of the panel holding the NavigationItemButton items as a fraction of the size of the RadRadialMenu control.
Declaration
public double OuterRadiusFactor { get; set; }
Property Value
The value should be between 0 and 1. If the passed value lies outside this range, it is automatically set to the nearest boundary value.
Example
<telerikPrimitives:RadRadialMenu OuterRadiusFactor="0.9"/>
ShowToolTip
Gets or sets a value indicating whether a tool tip, displaying the current selected RadialMenuItem header text, will be displayed.
Declaration
public bool ShowToolTip { get; set; }
Property Value
Example
<telerikPrimitives:RadRadialMenu ShowToolTip="True"/>
StartAngle
Gets or sets the start angle for ordering the RadialMenuItem components.
Declaration
public double StartAngle { get; set; }
Property Value
The angle is measured in radians.
Example
<telerikPrimitives:RadRadialMenu StartAngle="45"/>
TargetElement
Gets the target FrameworkElement instance that RadRadialMenu is assigned to.
Declaration
public FrameworkElement TargetElement { get; }
Property Value
FrameworkElement
Remarks
Before the menu is attached to the element via the RadialMenuTriggerBehavior this property has null value.
Example
<TextBlock Text="Some Text">
<telerikPrimitives:RadRadialContextMenu.Menu>
<telerikPrimitives:RadRadialMenu x:Name="radialMenu"/>
</telerikPrimitives:RadRadialContextMenu.Menu>
<telerikPrimitives:RadRadialContextMenu.Behavior>
<telerikPrimitives:RadialMenuTriggerBehavior AttachTriggers="PointerOver"/>
</telerikPrimitives:RadRadialContextMenu.Behavior>
</TextBlock>
var textBlock = this.radialMenu.TargetElement;
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnPointerExited(PointerRoutedEventArgs)
Called before the PointerExited event occurs.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Event data for the event.
OnPointerMoved(PointerRoutedEventArgs)
Called before the PointerMoved event occurs.
Declaration
protected override void OnPointerMoved(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Event data for the event.
OnSelectionChanged(RadialMenuItem)
Called when selection is changed .
Declaration
protected virtual void OnSelectionChanged(RadialMenuItem item)
Parameters
item
The changed menu item.
OnTapped(TappedRoutedEventArgs)
Called before the Tapped event occurs.
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
e
TappedRoutedEventArgs
Event data for the event.
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
Events
SelectionChanged
Occurs when menu item is selected/deselected.
Declaration
public event EventHandler<MenuSelectionChangedEventArgs> SelectionChanged
Event Value