Class
RadialMenuItem

Defines an abstraction of a menu item that is used to visualize command item along with its children within a RadRadialMenu component.

Definition

Namespace:Telerik.UI.Xaml.Controls.Navigation

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class RadialMenuItem : RadDependencyObject

Inheritance: objectRadDependencyObjectRadialMenuItem

Constructors

RadialMenuItem()

Declaration

cs-api-definition
public RadialMenuItem()

Fields

CommandParameterProperty

Identifies the CommandParameter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandParameterProperty

Field Value

DependencyProperty

CommandProperty

Identifies the Command dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CommandProperty

Field Value

DependencyProperty

ContentSectorBackgroundProperty

Identifies the ContentSectorBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentSectorBackgroundProperty

Field Value

DependencyProperty

DeselectableProperty

Identifies the Deselectable dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DeselectableProperty

Field Value

DependencyProperty

GroupNameProperty

Identifies the GroupName dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GroupNameProperty

Field Value

DependencyProperty

HeaderProperty

Identifies the Header dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

IconContentProperty

Identifies the IconContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IconContentProperty

Field Value

DependencyProperty

IsEnabledProperty

Identifies the IsEnabled dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsEnabledProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

SelectableProperty

Identifies the Selectable dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectableProperty

Field Value

DependencyProperty

ToolTipContentProperty

Identifies the ToolTipContent dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipContentProperty

Field Value

DependencyProperty

Properties

ChildItems

Gets the RadialMenuItem collection associated with the current RadialMenuItem.

Declaration

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

Property Value

BindableCollection<RadialMenuItem>

Example

xaml
<telerikPrimitives:RadRadialMenu x:Name="radialMenu">
    <telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;" x:Name="menuItem">
        <telerikPrimitives:RadialMenuItem Header="SubItem 1" IconContent="&#xE113;"/>
        <telerikPrimitives:RadialMenuItem Header="SubItem 2" IconContent="&#xE113;"/>
    </telerikPrimitives:RadialMenuItem>
</telerikPrimitives:RadRadialMenu>
c
var item = this.radialMenu.Items[0];
var children = item.ChildItems;

Command

Gets or sets the ICommand associated the current menu item.

Declaration

cs-api-definition
public ICommand Command { get; set; }

Property Value

ICommand

CommandParameter

Gets or sets command parameter that will be used by the Command associated with the RadialMenuItem.

Declaration

cs-api-definition
public object CommandParameter { get; set; }

Property Value

object

ContentSectorBackground

Gets or sets the Brush value that defines the background of the RadialMenuItem.

Declaration

cs-api-definition
public Brush ContentSectorBackground { get; set; }

Property Value

Brush

Example

xaml
<telerikPrimitives:RadialMenuItem ContentSectorBackground="Violet"/>

Deselectable

Gets or sets a value indicating whether the RadialMenuItem can be deselected.

Declaration

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

Property Value

bool

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;" Deselectable="True"/>

GroupName

Gets or sets a value specifying the name of the group this item belongs to. The default value is null.

Declaration

cs-api-definition
public string GroupName { get; set; }

Property Value

string

Remarks

All items in a group behave like radio buttons when selected.

Example

xaml
<telerikPrimitives:RadRadialMenu>
    <telerikPrimitives:RadialMenuItem GroupName="first" Header="first 1"/>
    <telerikPrimitives:RadialMenuItem GroupName="first" Header="first 2"/>
    <telerikPrimitives:RadialMenuItem GroupName="first" Header="first 3"/>
    <telerikPrimitives:RadialMenuItem GroupName="second" Header="second 1"/>
    <telerikPrimitives:RadialMenuItem GroupName="second" Header="second 2"/>
    <telerikPrimitives:RadialMenuItem GroupName="second" Header="second 3"/>
</telerikPrimitives:RadRadialMenu>

Header

Gets or sets a value specifying the visual representation of the title of the RadialMenuItem.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;"/>

IconContent

Gets or sets a value specifying the visual representation of the icon associated with the RadialMenuItem.

Declaration

cs-api-definition
public object IconContent { get; set; }

Property Value

object

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;"/>

IsEnabled

Gets or sets a value indicating whether the RadialMenuItem will be enabled.

Declaration

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

Property Value

bool

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;" IsEnabled="True"/>

IsSelected

Gets or sets a value indicating whether the menu item is selected.

Declaration

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

Property Value

bool

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;" IsSelected="True"/>

ParentItem

Gets the parent RadialMenuItem of the current menu item.

Declaration

cs-api-definition
public RadialMenuItem ParentItem { get; }

Property Value

RadialMenuItem

Example

xaml
<telerikPrimitives:RadialMenuItem x:Name="menuItem"/>
c
var parent = this.menuItem;

Selectable

Gets or sets a value indicating whether the RadialMenuItem can be selected.

Declaration

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

Property Value

bool

Example

xaml
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="&#xE113;" Selectable="True"/>

ToolTipContent

Gets or sets the tooltip content of the current RadialMenuItem.

Declaration

cs-api-definition
public object ToolTipContent { get; set; }

Property Value

object

Remarks

If this value is not set, the tooltip will display the Header content.

Example

xaml
<telerikPrimitives:RadialMenuItem ToolTipContent="Home"/>