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 Mutually Exclusive Checkable Radial Menu Items
In This Topic
    Creating Mutually Exclusive Checkable Radial Menu Items
    In This Topic

    In this topic, you learn how to create a list of checkable C1RadialMenuItems that are grouped together so that only one item can be checked at a time.

    In XAML

    Complete the following steps:

    1. Add IsCheckable="True" and GroupName="CheckableGroup" to the <c1:C1RadialMenuItem> tag of each C1RadialMenuItem you wish to add to the group of mutually exclusive checkable items.
    2. Run the program and click the first item in the group. Observe that the C1RadialMenuItem is highlighted. Now click the second item in the group and observe that the highlight is removed from the first item and then added to the second item.

    In Code

    1. Complete the following steps:
    2. Set the Name property of each C1RadialMenuItem you wish to add to the group of mutually exclusive checkable items.
    3. Open the MainPage.xaml.cs page.
    4. Set the IsCheckable and GroupName property of each C1RadialMenuItem, replacing "ItemName" with the value of the C1RadialMenuItem's Name property.
      Visual Basic
      Copy Code
      ItemName.IsCheckable = True
      
      C#
      Copy Code
      ItemName.IsCheckable = true;
      
    5. Run the program and tap the first item in the group.
      • Observe that a check that resembles a thinner highlight is added to the C1RadialMenuItem.
      • Now tap the second item in the group and observe that the check is removed from the first item and then added to the second item.
    See Also