New to Telerik UI for WPFStart a free 30-day trial

Represents a radial menu control that allows users to interact with a set of commands arranged in a circular layout. This control can be customized with various options and is often used for providing quick access to frequently used functions or commands in an application.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
[Bindable(BindableSupport.Default)]
[TelerikToolboxCategory("Navigation")]
public class RadRadialMenu : Control, INotifyPropertyChanged

Inheritance: objectRadRadialMenu

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the RadRadialMenu class.

C#
public RadRadialMenu()

Fields

Identifies the AutoCalculateStartAngle dependency property.

C#
public static readonly DependencyProperty AutoCalculateStartAngleProperty

AutoSizeMenuItemsProperty

DependencyProperty

Identifies the AutoSizeMenuItems dependency property.

C#
public static readonly DependencyProperty AutoSizeMenuItemsProperty

ClosedEvent

RoutedEvent

Identifies the Closed routed event.

C#
public static readonly RoutedEvent ClosedEvent

Identifies the ContentMenuBackgroundStyle dependency property.

C#
public static readonly DependencyProperty ContentMenuBackgroundStyleProperty

HideEventNameProperty

DependencyProperty

Identifies the HideEventName dependency property.

C#
public static readonly DependencyProperty HideEventNameProperty

Identifies the InnerNavigationRadiusFactor dependency property.

C#
public static readonly DependencyProperty InnerNavigationRadiusFactorProperty

InnerRadiusFactorProperty

DependencyProperty

Identifies the InnerRadiusFactor dependency property.

C#
public static readonly DependencyProperty InnerRadiusFactorProperty

IsOpenProperty

DependencyProperty

Identifies the IsOpen dependency property.

C#
public static readonly DependencyProperty IsOpenProperty

ItemsSourceProperty

DependencyProperty

Identifies the ItemsSource dependency property.

C#
public static readonly DependencyProperty ItemsSourceProperty

NavigatedEvent

RoutedEvent

Identifies the Navigate routed event.

C#
public static readonly RoutedEvent NavigatedEvent

Identifies the NavigationMenuBackgroundStyle dependency property.

C#
public static readonly DependencyProperty NavigationMenuBackgroundStyleProperty

OpenedEvent

RoutedEvent

Identifies the Opened routed event.

C#
public static readonly RoutedEvent OpenedEvent

OpeningEvent

RoutedEvent

Identifies the Opening routed event.

C#
public static readonly RoutedEvent OpeningEvent

OuterBorderPaddingProperty

DependencyProperty

Identifies the PlacementMode dependency property.

C#
public static readonly DependencyProperty OuterBorderPaddingProperty

OuterRadiusFactorProperty

DependencyProperty

Identifies the OuterRadiusFactor dependency property.

C#
public static readonly DependencyProperty OuterRadiusFactorProperty

Identifies the PlacementMode dependency property.

C#
public static readonly DependencyProperty PopupHorizontalOffsetProperty

PopupPlacementProperty

DependencyProperty

Identifies the PlacementMode dependency property.

C#
public static readonly DependencyProperty PopupPlacementProperty

PopupVerticalOffsetProperty

DependencyProperty

Identifies the PlacementMode dependency property.

C#
public static readonly DependencyProperty PopupVerticalOffsetProperty

Identifies the PreviewToolTipOpen routed event.

C#
public static readonly RoutedEvent PreviewToolTipOpenEvent

RadialContextMenuProperty

DependencyProperty

Identifies the RadRadialMenu attached property.

C#
public static readonly DependencyProperty RadialContextMenuProperty

ShowEventNameProperty

DependencyProperty

Identifies the ShowEventName dependency property.

C#
public static readonly DependencyProperty ShowEventNameProperty

ShowToolTipProperty

DependencyProperty

Identifies the ShowToolTip dependency property.

C#
public static readonly DependencyProperty ShowToolTipProperty

StartAngleProperty

DependencyProperty

Identifies the StartAngle dependency property.

C#
public static readonly DependencyProperty StartAngleProperty

StaysOpenOnShowProperty

DependencyProperty

Identifies the StaysOpenOnShow dependency property.

C#
public static readonly DependencyProperty StaysOpenOnShowProperty

Properties

Gets or sets the speed factor for the animations in RadRadialMenu. The default value is 1.5d. The value is always a positive number. The min value is 0.1d.

C#
public static double AnimationSpeedFactor { get; set; }

Gets or sets a value that indicates whether the start angle of the first menu item should be calculated automatically. If set to false the StartAngle property will be used to determine the starting position of the first menu item. This property only works when AutoSizeMenuItems is set to true.

C#
public bool AutoCalculateStartAngle { get; set; }

Gets or sets whether the menu items would be auto sized to fill the whole circle of the menu. Setting this property to true allows you to add more than 8 menu items.

C#
public bool AutoSizeMenuItems { get; set; }

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

C#
public CommandCollection<RadRadialMenu> Commands { get; }
Remarks:

Custom commands have higher priority than the built-in (default) ones.

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

C#
public CommandService CommandService { get; }

Gets or sets the Style value that defines the appearance of the menu items panel.

C#
public Style ContentMenuBackgroundStyle { get; set; }
Remarks:

The Style should target the Rectangle type.

Sets or gets whether the RadRadialMenu is in quick mode. If true, the animation is disabled and the control doesn't close when hiding.

C#
public static bool EnableQuickMode { get; set; }

Gets or sets the name of the event that will hide the context menu.

C#
public string HideEventName { get; set; }
Property Value:

The name of the event.

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.

C#
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.

Gets or sets the factor that defines the inner radius of the panel holding the RadRadialMenuItem items as a fraction of the size of the RadRadialMenu control.

C#
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.

Gets or sets a value that indicates whether the RadRadialMenu is open.

C#
public bool IsOpen { get; set; }

Determines whether the OnApplyTemplate() method and the ApplyTemplateCore() routine is passed.

C#
protected bool IsTemplateApplied { get; }
C#
public RadialMenuItemContainerGenerator ItemContainerGenerator { get; }

Gets the collection of all RadRadialMenuItem.

C#
public ObservableCollection<RadRadialMenuItem> Items { get; }

Gets or sets a collection used to generate the content of the RadRadialMenu.

C#
public IEnumerable<IRadialMenuItem> ItemsSource { get; set; }

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

C#
public Style NavigationMenuBackgroundStyle { get; set; }
Remarks:

The Style should target the Rectangle type.

Gets or sets the distance between the outer ring of the RadRadialMenu and its RadRadialMenuItem.

C#
public double OuterBorderPadding { get; set; }

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.

C#
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.

Gets or sets a PopupHorizontalOffset that determines the horizontal offset of the menu's Popup. This is a dependency property. Only used when PopupPlacement i set to Absolute and AbsolutePoint.

C#
public double PopupHorizontalOffset { get; set; }

PopupPlacement

PlacementMode

Gets or sets a PopupPlacement that determines where the menu would be position. This is a dependency property.

C#
public PlacementMode PopupPlacement { get; set; }

Gets or sets a PopupVerticalOffset that determines the horizontal offset of the menu's Popup. This is a dependency property. Only used when PopupPlacement i set to Absolute and AbsolutePoint.

C#
public double PopupVerticalOffset { get; set; }

Gets or sets the name of the event that will show the context menu.

C#
public string ShowEventName { get; set; }
Property Value:

The name of the event.

Gets or sets a value that indicates whether a tool tip, displaying the current selected RadRadialMenuItem header text, will be displayed.

C#
public bool ShowToolTip { get; set; }

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

C#
public double StartAngle { get; set; }
Property Value:

The angle is measured in radians.

Gets or sets whether the RadRadialMenu will be automatically opened when shown as context menu.

C#
public bool StaysOpenOnShow { get; set; }

TargetElement

FrameworkElement

Gets the target FrameworkElement instance that RadRadialMenu is assigned to.

C#
public FrameworkElement TargetElement { get; }
Remarks:

Before the menu is attached to the element this property has null value.

Methods

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.

C#
protected bool ApplyTemplateCore()
Returns:

bool

Determines whether the current visual state may be updated.

C#
protected virtual bool CanUpdateVisualState()
Returns:

bool

Builds the current visual state for this instance.

C#
protected virtual string ComposeVisualStateName()
Returns:

string

Returns the instance of current RadRadialMenu that is attached to specific FrameworkElement.

C#
public static RadRadialMenu GetRadialContextMenu(DependencyObject obj)
Parameters:objDependencyObject

The target FrameworkElement.

Returns:

RadRadialMenu

The attached RadRadialMenu control.

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

C#
public override void OnApplyTemplate()

Creates a RadRadialMenuAutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called before the System.Windows.UIElement.MouseLeave event occurs.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called before the System.Windows.UIElement.MouseLeftButtonUp event occurs.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Called before the System.Windows.UIElement.MouseMove event occurs.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Fires the Navigating event.

C#
protected virtual void OnNavigating(RadialMenuNavigatingEventArgs e)
Parameters:eRadialMenuNavigatingEventArgs

The data for the event.

Creates the MenuToolTipEventArgs and raises the PreviewToolTipOpen routed event.

C#
protected virtual MenuToolTipEventArgs OnPreviewToolTipOpen(RadRadialMenuItem menuItem, PlacementMode placement, double horizontalOffset, double verticalOffset, double outerRadius)
Parameters:menuItemRadRadialMenuItemplacementPlacementModehorizontalOffsetdoubleverticalOffsetdoubleouterRadiusdoubleReturns:

MenuToolTipEventArgs

Called when a value of a property is changed.

C#
protected void OnPropertyChanged(string name)
Parameters:namestring

The name of the property that changes.

Called when selection is changed.

C#
protected virtual void OnSelectionChanged(RadRadialMenuItem item)
Parameters:itemRadRadialMenuItem

The changed menu item.

Occurs when the method has been called and the template is already successfully applied.

C#
protected void OnTemplateApplied()

Resets the theme.

C#
public void ResetTheme()

Attaches an instance of RadRadialMenu to a specific FrameworkElement.

C#
public static void SetRadialContextMenu(DependencyObject obj, RadRadialMenu value)
Parameters:objDependencyObject

The target FrameworkElement.

valueRadRadialMenu

The RadRadialMenu instance to be attached to the target element.

Applies the specified visual state as current.

C#
protected virtual void SetVisualState(string state, bool animate)
Parameters:statestring

The new visual state.

animatebool

True to use transitions, false otherwise.

Re-evaluates the current visual state for the control and updates it if necessary.

C#
protected virtual void UpdateVisualState(bool animate)
Parameters:animatebool

True to use transitions during state update, false otherwise.

Events

Occurs when a RadRadialMenu is closed.

C#
[SRCategory("Behavior")]
public event RadRoutedEventHandler Closed

Occurs when a RadRadialMenu is navigated to another view.

C#
[SRCategory("Behavior")]
public event RadRoutedEventHandler Navigated

Occurs before a menu level changes.

C#
public event EventHandler<RadialMenuNavigatingEventArgs> Navigating

Occurs when a RadRadialMenu is opened.

C#
[SRCategory("Behavior")]
public event RadRoutedEventHandler Opened

Occurs before particular instance of RadRadialMenu opens. If it is handled then RadRadialMenu will not open.

C#
[SRCategory("Behavior")]
public event RadRoutedEventHandler Opening

Occurs before MenuToolTip is shown.

C#
public event RadRadialMenu.MenuToolTipEventHandler PreviewToolTipOpen

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged

Occurs when menu item is selected/deselected.

C#
public event EventHandler<MenuSelectionChangedEventArgs> SelectionChanged
In this article
DefinitionConstructorsRadRadialMenu()FieldsAutoCalculateStartAnglePropertyAutoSizeMenuItemsPropertyClosedEventContentMenuBackgroundStylePropertyHideEventNamePropertyInnerNavigationRadiusFactorPropertyInnerRadiusFactorPropertyIsOpenPropertyItemsSourcePropertyNavigatedEventNavigationMenuBackgroundStylePropertyOpenedEventOpeningEventOuterBorderPaddingPropertyOuterRadiusFactorPropertyPopupHorizontalOffsetPropertyPopupPlacementPropertyPopupVerticalOffsetPropertyPreviewToolTipOpenEventRadialContextMenuPropertyShowEventNamePropertyShowToolTipPropertyStartAnglePropertyStaysOpenOnShowPropertyPropertiesAnimationSpeedFactorAutoCalculateStartAngleAutoSizeMenuItemsCommandsCommandServiceContentMenuBackgroundStyleEnableQuickModeHideEventNameInnerNavigationRadiusFactorInnerRadiusFactorIsOpenIsTemplateAppliedItemContainerGeneratorItemsItemsSourceNavigationMenuBackgroundStyleOuterBorderPaddingOuterRadiusFactorPopupHorizontalOffsetPopupPlacementPopupVerticalOffsetShowEventNameShowToolTipStartAngleStaysOpenOnShowTargetElementMethodsApplyTemplateCore()CanUpdateVisualState()ComposeVisualStateName()GetRadialContextMenu(DependencyObject)OnApplyTemplate()OnCreateAutomationPeer()OnInitialized(EventArgs)OnMouseLeave(MouseEventArgs)OnMouseLeftButtonUp(MouseButtonEventArgs)OnMouseMove(MouseEventArgs)OnNavigating(RadialMenuNavigatingEventArgs)OnPreviewToolTipOpen(RadRadialMenuItem, PlacementMode, double, double, double)OnPropertyChanged(string)OnSelectionChanged(RadRadialMenuItem)OnTemplateApplied()ResetTheme()SetRadialContextMenu(DependencyObject, RadRadialMenu)SetVisualState(string, bool)UpdateVisualState(bool)EventsClosedNavigatedNavigatingOpenedOpeningPreviewToolTipOpenPropertyChangedSelectionChanged
Not finding the help you need?
Contact Support