Class RadRadialMenu
Represents a control that enables a user to visualize a set of Rad
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
[TelerikToolboxCategory("Navigation")]
public class RadRadialMenu : Control, INotifyPropertyChanged, IThemable
Constructors
RadRadialMenu()
Fields
AutoCalculateStartAngleProperty
Identifies the Auto
Declaration
public static readonly DependencyProperty AutoCalculateStartAngleProperty
Field Value
System.
|
AutoSizeMenuItemsProperty
Identifies the Auto
Declaration
public static readonly DependencyProperty AutoSizeMenuItemsProperty
Field Value
System.
|
ClosedEvent
Identifies the Closed routed event.
Declaration
public static readonly RoutedEvent ClosedEvent
Field Value
System.
|
ContentMenuBackgroundStyleProperty
Identifies the Content
Declaration
public static readonly DependencyProperty ContentMenuBackgroundStyleProperty
Field Value
System.
|
HideEventNameProperty
Identifies the HideEventName dependency property.
Declaration
public static readonly DependencyProperty HideEventNameProperty
Field Value
System.
|
InnerNavigationRadiusFactorProperty
InnerRadiusFactorProperty
Identifies the Inner
Declaration
public static readonly DependencyProperty InnerRadiusFactorProperty
Field Value
System.
|
IsOpenProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
System.
|
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
System.
|
NavigatedEvent
NavigationMenuBackgroundStyleProperty
OpenedEvent
Identifies the Opened routed event.
Declaration
public static readonly RoutedEvent OpenedEvent
Field Value
System.
|
OpeningEvent
Identifies the Opening routed event.
Declaration
public static readonly RoutedEvent OpeningEvent
Field Value
System.
|
OuterBorderPaddingProperty
Identifies the PlacementMode dependency property.
Declaration
public static readonly DependencyProperty OuterBorderPaddingProperty
Field Value
System.
|
OuterRadiusFactorProperty
Identifies the Outer
Declaration
public static readonly DependencyProperty OuterRadiusFactorProperty
Field Value
System.
|
PopupHorizontalOffsetProperty
Identifies the PlacementMode dependency property.
Declaration
public static readonly DependencyProperty PopupHorizontalOffsetProperty
Field Value
System.
|
PopupPlacementProperty
Identifies the PlacementMode dependency property.
Declaration
public static readonly DependencyProperty PopupPlacementProperty
Field Value
System.
|
PopupVerticalOffsetProperty
Identifies the PlacementMode dependency property.
Declaration
public static readonly DependencyProperty PopupVerticalOffsetProperty
Field Value
System.
|
PreviewToolTipOpenEvent
Identifies the Preview
Declaration
public static readonly RoutedEvent PreviewToolTipOpenEvent
Field Value
System.
|
RadialContextMenuProperty
Identifies the Rad
Declaration
public static readonly DependencyProperty RadialContextMenuProperty
Field Value
System.
|
ShowEventNameProperty
Identifies the ShowEventName dependency property.
Declaration
public static readonly DependencyProperty ShowEventNameProperty
Field Value
System.
|
ShowToolTipProperty
Identifies the Show
Declaration
public static readonly DependencyProperty ShowToolTipProperty
Field Value
System.
|
StartAngleProperty
Identifies the Start
Declaration
public static readonly DependencyProperty StartAngleProperty
Field Value
System.
|
StaysOpenOnShowProperty
Identifies the Stays
Declaration
public static readonly DependencyProperty StaysOpenOnShowProperty
Field Value
System.
|
Properties
AnimationSpeedFactor
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.
Declaration
public static double AnimationSpeedFactor { get; set; }
Property Value
System.
|
AutoCalculateStartAngle
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 Start
Declaration
public bool AutoCalculateStartAngle { get; set; }
Property Value
System.
|
AutoSizeMenuItems
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.
Declaration
public bool AutoSizeMenuItems { get; set; }
Property Value
System.
|
Commands
Gets the collection with all the custom commands registered with the Command
Declaration
public CommandCollection<RadRadialMenu> Commands { get; }
Property Value
Remarks
Custom commands have higher priority than the built-in (default) ones.
CommandService
Gets the Command
Declaration
public CommandService CommandService { get; }
Property Value
ContentMenuBackgroundStyle
Gets or sets the System.
Declaration
public Style ContentMenuBackgroundStyle { get; set; }
Property Value
System.
|
Remarks
The System.
Examples
<telerikPrimitives:RadRadialMenu>
<telerikPrimitives:RadRadialMenu.ContentMenuBackgroundStyle>
<Style TargetType="Rectangle">
<Setter Property="Fill" Value="LightGreen"/>
</Style>
</telerikPrimitives:RadRadialMenu.ContentMenuBackgroundStyle>
</telerikPrimitives:RadRadialMenu>
EnableQuickMode
Sets or gets whether the Rad
Declaration
public static bool EnableQuickMode { get; set; }
Property Value
System.
|
HideEventName
Gets or sets the name of the event that will hide the context menu.
Declaration
public string HideEventName { get; set; }
Property Value
System. The name of the event. |
InnerNavigationRadiusFactor
InnerRadiusFactor
Gets or sets the factor that defines the inner radius of the panel holding the Rad
Declaration
public double InnerRadiusFactor { get; set; }
Property Value
System. 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. |
Examples
<telerikPrimitives:RadRadialMenu InnerRadiusFactor="0.3"/>
IsOpen
Gets or sets a value that indicates whether the Rad
Declaration
public bool IsOpen { get; set; }
Property Value
System.
|
Examples
<telerikPrimitives:RadRadialMenu IsOpen="True"/>
IsTemplateApplied
Determines whether the On
Declaration
protected bool IsTemplateApplied { get; }
Property Value
System.
|
ItemContainerGenerator
Gets the Radial
Declaration
public RadialMenuItemContainerGenerator ItemContainerGenerator { get; }
Property Value
Items
Gets the collection of all Rad
Declaration
public ObservableCollection<RadRadialMenuItem> Items { get; }
Property Value
System.
|
Examples
<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;
ItemsSource
Gets or sets a collection used to generate the content of the Rad
Declaration
public IEnumerable<IRadialMenuItem> ItemsSource { get; set; }
Property Value
System.
|
NavigationMenuBackgroundStyle
OuterBorderPadding
Gets or sets the distance between the outer ring of the Rad
Declaration
public double OuterBorderPadding { get; set; }
Property Value
System.
|
OuterRadiusFactor
Gets or sets the factor that defines the outer radius of the panel holding the Navigation
Declaration
public double OuterRadiusFactor { get; set; }
Property Value
System. 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. |
Examples
<telerikPrimitives:RadRadialMenu OuterRadiusFactor="0.9"/>
PopupHorizontalOffset
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.
Declaration
public double PopupHorizontalOffset { get; set; }
Property Value
System.
|
PopupPlacement
Gets or sets a PopupPlacement that determines where the menu would be position. This is a dependency property.
Declaration
public PlacementMode PopupPlacement { get; set; }
Property Value
System.
|
PopupVerticalOffset
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.
Declaration
public double PopupVerticalOffset { get; set; }
Property Value
System.
|
ShowEventName
Gets or sets the name of the event that will show the context menu.
Declaration
public string ShowEventName { get; set; }
Property Value
System. The name of the event. |
ShowToolTip
Gets or sets a value that indicates whether a tool tip, displaying the current selected Rad
Declaration
public bool ShowToolTip { get; set; }
Property Value
System.
|
Examples
<telerikPrimitives:RadRadialMenu ShowToolTip="True"/>
StartAngle
Gets or sets the start angle for ordering the Rad
Declaration
public double StartAngle { get; set; }
Property Value
System. The angle is measured in radians. |
Examples
<telerikPrimitives:RadRadialMenu StartAngle="45"/>
StaysOpenOnShow
Gets or sets whether the Rad
Declaration
public bool StaysOpenOnShow { get; set; }
Property Value
System.
|
TargetElement
Gets the target System.
Declaration
public FrameworkElement TargetElement { get; }
Property Value
System.
|
Remarks
Before the menu is attached to the element this property has null
value.
Examples
<TextBlock Text="Some Text">
<telerikPrimitives:RadRadialContextMenu.Menu>
<telerikPrimitives:RadRadialMenu x:Name="radialMenu"/>
</telerikPrimitives:RadRadialContextMenu.Menu>
</TextBlock>
After you perform the action that will attach the menu to the target element, you can use the Target
var textBlock = this.radialMenu.TargetElement;
Methods
add_Closed(RadRoutedEventHandler)
Declaration
public void add_Closed(RadRoutedEventHandler value)
Parameters
Rad
|
add_Navigated(RadRoutedEventHandler)
add_Opened(RadRoutedEventHandler)
Declaration
public void add_Opened(RadRoutedEventHandler value)
Parameters
Rad
|
add_Opening(RadRoutedEventHandler)
Declaration
public void add_Opening(RadRoutedEventHandler value)
Parameters
Rad
|
add_PreviewToolTipOpen(RadRadialMenu.MenuToolTipEventHandler)
Declaration
public void add_PreviewToolTipOpen(RadRadialMenu.MenuToolTipEventHandler value)
Parameters
ApplyTemplateCore()
Called when the Framework On
Declaration
protected bool ApplyTemplateCore()
Returns
System.
|
CanUpdateVisualState()
Determines whether the current visual state may be updated.
Declaration
protected virtual bool CanUpdateVisualState()
Returns
System.
|
ComposeVisualStateName()
Builds the current visual state for this instance.
Declaration
protected virtual string ComposeVisualStateName()
Returns
System.
|
GetRadialContextMenu(DependencyObject)
Returns the instance of current Rad
Declaration
public static RadRadialMenu GetRadialContextMenu(DependencyObject obj)
Parameters
System. The target System. |
Returns
Rad The attached Rad |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Creates a RadRadialMenuAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.
|
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnMouseLeave(MouseEventArgs)
Called before the System.Windows.UIElement.MouseLeave event occurs.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System. The data for the event. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonUp event occurs.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System. The data for the event. |
OnMouseMove(MouseEventArgs)
Called before the System.Windows.UIElement.MouseMove event occurs.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System. The data for the event. |
OnNavigating(RadialMenuNavigatingEventArgs)
OnPreviewToolTipOpen(RadRadialMenuItem, PlacementMode, Double, Double, Double)
Creates the Menu
Declaration
protected virtual MenuToolTipEventArgs OnPreviewToolTipOpen(RadRadialMenuItem menuItem, PlacementMode placement, double horizontalOffset, double verticalOffset, double outerRadius)
Parameters
Rad
|
System.
|
System.
|
System.
|
System.
|
Returns
OnPropertyChanged(String)
Called when a value of a property is changed.
Declaration
protected void OnPropertyChanged(string name)
Parameters
System. The name of the property that changes. |
OnSelectionChanged(RadRadialMenuItem)
Called when selection is changed.
Declaration
protected virtual void OnSelectionChanged(RadRadialMenuItem item)
Parameters
Rad The changed menu item. |
OnTemplateApplied()
Occurs when the On
Declaration
protected void OnTemplateApplied()
remove_Closed(RadRoutedEventHandler)
Declaration
public void remove_Closed(RadRoutedEventHandler value)
Parameters
Rad
|
remove_Navigated(RadRoutedEventHandler)
remove_Opened(RadRoutedEventHandler)
Declaration
public void remove_Opened(RadRoutedEventHandler value)
Parameters
Rad
|
remove_Opening(RadRoutedEventHandler)
Declaration
public void remove_Opening(RadRoutedEventHandler value)
Parameters
Rad
|
remove_PreviewToolTipOpen(RadRadialMenu.MenuToolTipEventHandler)
Declaration
public void remove_PreviewToolTipOpen(RadRadialMenu.MenuToolTipEventHandler value)
Parameters
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()
SetRadialContextMenu(DependencyObject, RadRadialMenu)
Attaches an instance of Rad
Declaration
public static void SetRadialContextMenu(DependencyObject obj, RadRadialMenu value)
Parameters
System. The target System. |
Rad The Rad |
SetVisualState(String, Boolean)
Applies the specified visual state as current.
Declaration
protected virtual void SetVisualState(string state, bool animate)
Parameters
System. The new visual state. |
System. 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. True to use transitions during state update, false otherwise. |
Events
Closed
Occurs when a Rad
Declaration
[SRCategory("Behavior")]
public event RadRoutedEventHandler Closed
Event Type
Navigated
Navigating
Opened
Occurs when a Rad
Declaration
[SRCategory("Behavior")]
public event RadRoutedEventHandler Opened
Event Type
Opening
Occurs before particular instance of RadRadialMenu opens. If it is handled then RadRadialMenu will not open.
Declaration
[SRCategory("Behavior")]
public event RadRoutedEventHandler Opening
Event Type
PreviewToolTipOpen
Occurs before Menu
Declaration
public event RadRadialMenu.MenuToolTipEventHandler PreviewToolTipOpen
Event Type
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|
SelectionChanged
Occurs when menu item is selected/deselected.
Declaration
public event EventHandler<MenuSelectionChangedEventArgs> SelectionChanged
Event Type
System.
|