Edit this page

Getting Started

This topic will walk you through the creating of RadRadialMenu.

In order to use RadRadialMenu in your project you have to add references to the following two assemblies:

  • Telerik.Windows.Controls.dll
  • Telerik.Windows.Controls.Navigation.dll

RadRadialMenu as a Normal Menu

You can include the control in your page by either dragging it from the toolbox in Visual Studio, or manually creating the control. Below is an example of how to create the RadRadialMenu control in code behind and XAML code:

[XAML] Creating RadRadialMenu

<telerik:RadRadialMenu>
    <telerik:RadRadialMenuItem Header="Item 1" />
    <telerik:RadRadialMenuItem Header="Item 2" />
    <telerik:RadRadialMenuItem Header="Item 3" />
</telerik:RadRadialMenu>

where telerik namespace is defined like this:

[XAML]

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

[C#] Creating RadRadialMenu with code

var radialMenu = new RadRadialMenu();

radialMenu.Items.Add(new RadRadialMenuItem() { Header = "Item 1" });
radialMenu.Items.Add(new RadRadialMenuItem() { Header = "Item 2" });
radialMenu.Items.Add(new RadRadialMenuItem() { Header = "Item 3" });

RadRadialMenu as a Context Menu

Here is a simple example demonstrating how to declare a RadRadialMenu instance as a context menu for a TextBox using its ShowEventName and HideEventName properties.

[XAML] RadialMenu as a ContextMenu

<TextBox Text="Some Text">
    <telerik:RadRadialMenu.RadialContextMenu>
        <telerik:RadRadialMenu ShowEventName="GotFocus" HideEventName="LostFocus">
            <telerik:RadRadialMenuItem Header="Item 1" />
            <telerik:RadRadialMenuItem Header="Item 2" />
            <telerik:RadRadialMenuItem Header="Item 3" />
        </telerik:RadRadialMenu>
    </telerik:RadRadialMenu.RadialContextMenu>
</TextBox>

For further reference check RadRadialMenu as a ContextMenu topic.

See Also