Class
RadRadialMenu

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:

cs-api-definition
public class RadRadialMenu : RadControl

Inheritance: objectRadControlRadRadialMenu

Inherited Members RadControl.EndVisualStateUpdate(bool, bool)RadControl.UpdateVisualState(bool)RadControl.BeginVisualStateUpdate()RadControl.SetVisualState(string, bool)RadControl.CanUpdateVisualState()RadControl.ComposeVisualStateName()RadControl.MeasureOverride(Size)RadControl.ArrangeOverride(Size)RadControl.OnApplyTemplate()RadControl.UnapplyTemplateCore()RadControl.OnIsEnabledChanged(bool, bool)RadControl.LoadCore()RadControl.OnLoaded()RadControl.UnloadCore()RadControl.CurrentVisualStateRadControl.IsLoadedRadControl.IsLoadingRadControl.IsUnloadedRadControl.WasUnloadedRadControl.IsTemplateApplied

Constructors

RadRadialMenu()

Initializes a new instance of the RadRadialMenu class.

Declaration

cs-api-definition
public RadRadialMenu()

Fields

ContentMenuBackgroundStyleProperty

Identifies the ContentMenuBackgroundStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentMenuBackgroundStyleProperty

Field Value

DependencyProperty

InnerNavigationRadiusFactorProperty

Identifies the InnerNavigationRadiusFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InnerNavigationRadiusFactorProperty

Field Value

DependencyProperty

InnerRadiusFactorProperty

Identifies the InnerRadiusFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty InnerRadiusFactorProperty

Field Value

DependencyProperty

IsOpenProperty

Identifies the IsOpen dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsOpenProperty

Field Value

DependencyProperty

NavigationMenuBackgroundStyleProperty

Identifies the ContentMenuBackgroundStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty NavigationMenuBackgroundStyleProperty

Field Value

DependencyProperty

OuterRadiusFactorProperty

Identifies the OuterRadiusFactor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OuterRadiusFactorProperty

Field Value

DependencyProperty

ShowToolTipProperty

Identifies the ShowToolTip dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ShowToolTipProperty

Field Value

DependencyProperty

StartAngleProperty

Identifies the StartAngle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartAngleProperty

Field Value

DependencyProperty

Properties

CommandService

Gets the CommandService instance that manages the commanding behavior of this instance.

Declaration

cs-api-definition
public CommandService CommandService { get; }

Property Value

CommandService

Commands

Gets the collection with all the custom commands registered with the CommandService.

Declaration

cs-api-definition
public CommandCollection<RadRadialMenu> Commands { get; }

Property Value

CommandCollection<RadRadialMenu>

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

cs-api-definition
public Style ContentMenuBackgroundStyle { get; set; }

Property Value

Style

Remarks

The Style should target the type.

Example

xaml
<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

cs-api-definition
public double InnerNavigationRadiusFactor { get; set; }

Property Value

double

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

xaml
<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

cs-api-definition
public double InnerRadiusFactor { get; set; }

Property Value

double

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

xaml
<telerikPrimitives:RadRadialMenu InnerRadiusFactor="0.3"/>

IsOpen

Gets or sets a value indicating whether the RadRadialMenu is open.

Declaration

cs-api-definition
public bool IsOpen { get; set; }

Property Value

bool

Example

xaml
<telerikPrimitives:RadRadialMenu IsOpen="True"/>

Items

Gets the collection of all RadialMenuItem.

Declaration

cs-api-definition
public BindableCollection<RadialMenuItem> Items { get; }

Property Value

BindableCollection<RadialMenuItem>

Example

xaml
<telerikPrimitives:RadRadialMenu x:Name="radialMenu">
    <telerikPrimitives:RadialMenuItem Header="Item 1"/>
    <telerikPrimitives:RadialMenuItem Header="Item 2"/>
    <telerikPrimitives:RadialMenuItem Header="Item 3"/>
</telerikPrimitives:RadRadialMenu>
c
var items = this.radialMenu.Items;

NavigationMenuBackgroundStyle

Gets or sets the Style value that defines the appearance of the navigation buttons panel.

Declaration

cs-api-definition
public Style NavigationMenuBackgroundStyle { get; set; }

Property Value

Style

Remarks

The Style should target the type.

Example

xaml
<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

cs-api-definition
public double OuterRadiusFactor { get; set; }

Property Value

double

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

xaml
<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

cs-api-definition
public bool ShowToolTip { get; set; }

Property Value

bool

Example

xaml
<telerikPrimitives:RadRadialMenu ShowToolTip="True"/>

StartAngle

Gets or sets the start angle for ordering the RadialMenuItem components.

Declaration

cs-api-definition
public double StartAngle { get; set; }

Property Value

double

The angle is measured in radians.

Example

xaml
<telerikPrimitives:RadRadialMenu StartAngle="45"/>

TargetElement

Gets the target FrameworkElement instance that RadRadialMenu is assigned to.

Declaration

cs-api-definition
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

xaml
<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>
c
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.

Declaration

cs-api-definition
protected override bool ApplyTemplateCore()

Returns

bool

Overrides RadControl.ApplyTemplateCore()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadControl.OnCreateAutomationPeer()

OnPointerExited(PointerRoutedEventArgs)

Called before the PointerExited event occurs.

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Event data for the event.

OnPointerMoved(PointerRoutedEventArgs)

Called before the PointerMoved event occurs.

Declaration

cs-api-definition
protected override void OnPointerMoved(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Event data for the event.

OnSelectionChanged(RadialMenuItem)

Called when selection is changed .

Declaration

cs-api-definition
protected virtual void OnSelectionChanged(RadialMenuItem item)

Parameters

item

RadialMenuItem

The changed menu item.

OnTapped(TappedRoutedEventArgs)

Called before the Tapped event occurs.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnTemplateApplied()

Overrides RadControl.OnTemplateApplied()

Events

SelectionChanged

Occurs when menu item is selected/deselected.

Declaration

cs-api-definition
public event EventHandler<MenuSelectionChangedEventArgs> SelectionChanged

Event Value

EventHandler<MenuSelectionChangedEventArgs>