Class RadRadialMenuItem
Defines a menu item that is used to visualize radial menu item along with its children within a RadRadialMenu component.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
[TelerikToolboxCategory("Navigation")]
public class RadRadialMenuItem : Control, IRadialMenuItem, IThemable
Constructors
RadRadialMenuItem()
Fields
CanUserSelectProperty
Identifies the CanUserSelect dependency property.
Declaration
public static readonly DependencyProperty CanUserSelectProperty
Field Value
System.Windows.DependencyProperty
|
ClickEvent
Identifies the Click routed event.
Declaration
public static readonly RoutedEvent ClickEvent
Field Value
System.Windows.RoutedEvent
|
CommandParameterProperty
Identifies the CommandParameter dependency property.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
System.Windows.DependencyProperty
|
CommandProperty
Identifies the Command dependency property.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
System.Windows.DependencyProperty
|
CommandTargetProperty
Identifies the CommandTarget dependency property.
Declaration
public static readonly DependencyProperty CommandTargetProperty
Field Value
System.Windows.DependencyProperty
|
ContentSectorBackgroundProperty
Identifies the ContentSectorBackground dependency property.
Declaration
public static readonly DependencyProperty ContentSectorBackgroundProperty
Field Value
System.Windows.DependencyProperty
|
GroupNameProperty
Identifies the GroupName dependency property.
Declaration
public static readonly DependencyProperty GroupNameProperty
Field Value
System.Windows.DependencyProperty
|
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
System.Windows.DependencyProperty
|
IconContentProperty
Identifies the IconContent dependency property.
Declaration
public static readonly DependencyProperty IconContentProperty
Field Value
System.Windows.DependencyProperty
|
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.Windows.DependencyProperty
|
MenuProperty
Identifies the Role dependency property.
Declaration
public static readonly DependencyProperty MenuProperty
Field Value
System.Windows.DependencyProperty
|
ToolTipContentProperty
Identifies the ToolTipContent dependency property.
Declaration
public static readonly DependencyProperty ToolTipContentProperty
Field Value
System.Windows.DependencyProperty
|
Properties
CanUserSelect
Gets or sets whether a user can select the menu item.
Declaration
public bool CanUserSelect { get; set; }
Property Value
System.Boolean
|
Implements
ChildItems
Gets the RadRadialMenuItem collection associated with the current RadRadialMenuItem.
Declaration
public ObservableCollection<RadRadialMenuItem> ChildItems { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<RadRadialMenuItem>
|
Examples
<telerikPrimitives:RadRadialMenu x:Name="radialMenu">
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="" x:Name="menuItem">
<telerikPrimitives:RadialMenuItem Header="SubItem 1" IconContent=""/>
<telerikPrimitives:RadialMenuItem Header="SubItem 2" IconContent=""/>
</telerikPrimitives:RadialMenuItem>
</telerikPrimitives:RadRadialMenu>
var item = this.radialMenu.Items[0];
var children = item.ChildItems;
Command
Gets or sets the System.Windows.Input.ICommand associated the current menu item.
Declaration
public ICommand Command { get; set; }
Property Value
System.Windows.Input.ICommand
|
Implements
CommandParameter
Gets or sets command parameter that will be used by the Command associated with the RadRadialMenuItem.
Declaration
public object CommandParameter { get; set; }
Property Value
System.Object
|
Implements
CommandTarget
Gets or sets command target that will be used by the Command associated with the RadRadialMenuItem.
Declaration
public UIElement CommandTarget { get; set; }
Property Value
System.Windows.UIElement
|
Implements
ContentSectorBackground
Gets or sets the System.Windows.Media.Brush value that defines the background of the RadRadialMenuItem.
Declaration
public Brush ContentSectorBackground { get; set; }
Property Value
System.Windows.Media.Brush
|
Implements
Examples
<telerikPrimitives:RadialMenuItem ContentSectorBackground="Violet"/>
GroupName
Gets or sets a value specifying the name of the group this item belongs to. The default value is null.
Declaration
public string GroupName { get; set; }
Property Value
System.String
|
Implements
Remarks
All items in a group behave like radio buttons when selected.
Examples
<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 RadRadialMenuItem.
Declaration
public object Header { get; set; }
Property Value
System.Object
|
Implements
Examples
<telerikPrimitives:RadialMenuItem Header="Item" IconContent=""/>
IconContent
Gets or sets a value specifying the visual representation of the icon associated with the RadRadialMenuItem.
Declaration
public object IconContent { get; set; }
Property Value
System.Object
|
Implements
Examples
<telerikPrimitives:RadialMenuItem Header="Item" IconContent=""/>
IsSelected
Gets or sets a value indicating whether the menu item is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.Boolean
|
Implements
Examples
<telerikPrimitives:RadialMenuItem Header="Item" IconContent="" IsSelected="True"/>
Menu
Gets the RadMenu for this RadMenuItem. This is a readonly dependency property.
Declaration
public RadRadialMenu Menu { get; }
Property Value
RadRadialMenu
|
ParentItem
Gets the parent RadRadialMenuItem of the current menu item.
Declaration
public RadRadialMenuItem ParentItem { get; }
Property Value
RadRadialMenuItem
|
Examples
<telerikPrimitives:RadialMenuItem x:Name="menuItem"/>
var parent = this.menuItem;
ToolTipContent
Gets or sets the tooltip content of the current RadRadialMenuItem.
Declaration
public object ToolTipContent { get; set; }
Property Value
System.Object
|
Implements
Remarks
If this value is not set, the tooltip will display the Header content.
Examples
<telerikPrimitives:RadialMenuItem ToolTipContent="Home"/>
Methods
ComposeVisualStateName()
Builds the current visual state for this instance.
Declaration
protected string ComposeVisualStateName()
Returns
System.String
|
ComposeVisualStateNameBase()
Builds the current visual state for this instance.
Declaration
protected string ComposeVisualStateNameBase()
Returns
System.String
|
OnApplyTemplate()
Applies the template for the RadialMenuItemContainer.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates a RadRadialMenuItemAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
|
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
SetVisualState(String, Boolean)
Applies the specified visual state as current.
Declaration
protected virtual void SetVisualState(string state, bool animate)
Parameters
System.String
state
The new visual state. |
System.Boolean
animate
True to use transitions, false otherwise. |
UpdateVisualState(Boolean)
Re-evaluates the current visual state for the control and updates it if necessary.
Declaration
protected virtual void UpdateVisualState(bool animate)
Parameters
System.Boolean
animate
True to use transitions during state update, false otherwise. |
Events
Click
Occurs when a RadRadialMenuItem is clicked.
Declaration
[SRCategory("Behavior")]
public event RadRoutedEventHandler Click
Event Type
RadRoutedEventHandler
|
Explicit Interface Implementations
IRadialMenuItem.ItemsSource
Declaration
IEnumerable<IRadialMenuItem> IRadialMenuItem.ItemsSource { get; set; }
Returns
System.Collections.Generic.IEnumerable<IRadialMenuItem>
|