ComponentOne Basic Library for UWP
Basic Library Overview / Radial Menu for UWP / Radial Menu for UWP Task-Based Help / Working with Checkable Radial Menu Items / Creating a Checkable C1RadialMenuItem
In This Topic
    Creating a Checkable C1RadialMenuItem
    In This Topic

    In this topic, you will create a checkable C1RadialMenuItem that can be selected or cleared by a user. In order to complete this topic, you must have a C1RadialMenu control that holds at least one item or a C1RadialMenu control with at least one submenu.

    In XAML

    Complete the following steps:

    1. Locate the <Xaml:C1RadialMenuItem> tag for the C1RadialMenuItem you wish to make checkable and then add IsCheckable="True" to the tag so that the XAML resembles the following:
    Markup
    Copy Code
    <Xaml:C1RadialMenuItem Header="C1RadialMenuItem" IsCheckable="True"/>
    
    1. Run the project.

    In Code

    Complete the following steps:

    1. In Source view, locate the <Xaml:C1RadialMenuItem> tag for the item you wish to make checkable and add Name="CheckableRadialMenuItem" to it. This will give the item a unique identifier that you can use in code.
    1. Enter Code View and add the following code beneath the InitializeComponent() method:
    Visual Basic
    Copy Code
    CheckableRadialMenuItem.IsCheckable = True
    
    C#
    Copy Code
    CheckableRadialMenuItem.IsCheckable = true;
    
    1. Run the program

    This Topic Illustrates the Following:

    Once the program is run, open the C1RadialMenu. To add a check mark, click the C1RadialMenuItem

    The graphic below illustrates a checkable C1RadialMenuItem.

    See Also