WPF and Silverlight Edition Basic Library / RadialMenu / RadialMenu Elements / Creating Radial Menus
Creating Radial Menus

Using the C1RadialMenu control, you can create both top-level menus and submenus. Creating either type of menu is easy with C1RadialMenu:

Complete the following steps to create a top-level menu:

  1. Place the following XAML between the <Grid> and </Grid> tags:
XAML
Copy Code
<Xaml:C1ContextMenuService.ContextMenu>
     <Xaml:C1RadialMenu >                      
    </Xaml:C1RadialMenu>
</Xaml:C1ContextMenuService.ContextMenu>

The C1RadialMenu control is within a ContextMenuService. When you run your application, the menu will appear when you right-click or right-tap.

  1. Place the following XAML between the <Xaml:C1RadialMenu> and </Xaml:C1RadialMenu> tags. This will create three top-level menu items:
XAML
Copy Code
<Xaml:C1RadialMenuItem Header="RadialMenuItem1" />
<Xaml:C1RadialMenuItem Header="RadialMenuItem2" />
<Xaml:C1RadialMenuItem Header="RadialMenuItem3" />
  1. Run the program and observe the following:
    • Right tap or right-click the page. In this case, this is the element to which the C1RadialMenu is attached. Observe that the Navigation Button appears.
    • Tap or click the Navigation Button to open the radial menu. Observe that the C1RadialMenu contains three C1RadialMenuItems.

Your top-level menu should resemble the following image: