Version

Adding xamRadialMenu to Your Page

Topic Overview

Purpose

This topic provides detailed instructions to help you get up and running as soon as possible with the xamRadialMenu ™.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic explains the features supported by the control from developer perspective.

This topic provides an overview of the visual elements of the control.

In this topic

This topic contains the following sections:

Adding xamRadialMenu to Your Page

Introduction

The procedure bellow provides guidance on how to add the xamRadialMenu control and optional step on how to add different types of menu items.

Preview

The following screenshot is a preview of the final result including all optional steps:

xamRadialMenu 14.png

Steps

The following steps demonstrate how to add xamRadialMenu to your page.

1. NuGet package references

Add the following NuGet package reference to your project:

  • Infragistics.WPF.RadialMenu

For more information on setting up the NuGet feed and adding NuGet packages, you can take a look at the following documentation: NuGet Feeds.

2. Namespaces

Add the following namespaces:

Following is the code that implements this example.

In XAML:

xmlns:ig="http://schemas.infragistics.com/xaml"

Following is the code that implements this example.

In C#:

using Infragistics.Controls.Menus;

Following is the code that implements this example.

In Visual Basic:

Imports Infragistics.Controls.Menus

3. Create an instance of the xamRadialMenu

Create and place the xamRadialMenu on your page:

Following is the code that implements this example.

In XAML:

<ig:XamRadialMenu
 x:Name="rMenu" Width="300" Height="300">
<!-- Put menu items here -->
</ig:XamRadialMenu>

4. Add a button item (optional)

Define a button item in the xamRadialMenu :

Following is the code that implements this example.

In XAML:

<ig:RadialMenuItem
 Header="Bold"
 Click="RadialMenuBold_Click" />

Following is the code that implements this example.

In C#:

public void RadialMenuBold_Click(object sender, EventArgs e)
{
    // code for handling the button item click event
}

Following is the code that implements this example.

In Visual Basic:

Public Sub RadialMenuBold_Click(sender As Object, e As EventArgs)
    ' code for handling the button item click event
End Sub

5. Add a color item (optional)

Define a color item with child color well items in the xamRadialMenu :

In XAML:

<ig:RadialMenuColorItem Header="Color">
    <ig:RadialMenuColorWell Color="#FFFF00" />
    <ig:RadialMenuColorWell Color="#C00000" />
    <ig:RadialMenuColorWell Color="#008000" />
    <ig:RadialMenuColorWell Color="#002060" />
    <ig:RadialMenuColorWell Color="#000000" />
</ig:RadialMenuColorItem>

6. Add a numeric gauge item (optional)

Following is the code that implements this example.

In XAML:

<ig:RadialMenuNumericGauge
 WedgeSpan="5" Value="16"
    Ticks="8 9 10 11 12 13 14 16 18 20 22 24 26 28 36 48 72" />

Related Content

Topics

The following topic provides additional information related to this topic.

Topic Purpose

This topic explains how to configure the xamRadialMenu control.