Menu for WPF | ComponentOne
Menu Overview / Radial Menu / Checkable Radial Menu Items
In This Topic
    Checkable Radial Menu Items
    In This Topic

    You can make any RadialMenuItem checkable by setting its IsCheckable property to True. In RadialMenu, a checked item is marked similarly to a highlighted item instead of with a typical check mark. You can see the Insert Above option checked in the following image.

    Note that the check is thinner than the highlight you can see in the RadialMenu Elements topic:

    To create a checkable RadialMenuItem as in the previous image, follow these steps:

    1. Locate the <c1: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:
    XAML
    Copy Code
    <c1:C1RadialMenuItem Header="C1RadialMenuItem" IsCheckable="True"/>
    
    1. Run the project.
    1. In Source view, locate the <c1: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.
    2. Enter Code View and add the following code beneath the InitializeComponent() method:
      C#
      Copy Code
      CheckableRadialMenuItem.IsCheckable = true;
      
    3. Run the program.