Basic Library for WPF and Silverlight | ComponentOne
WPF and Silverlight Edition Basic Library / RadialMenu / RadialMenu Features / Checkable Radial Menu Items
In This Topic
    Checkable Radial Menu Items
    In This Topic

    You can make any C1RadialMenuItem checkable by setting its IsCheckable property to True.

    In the C1RadialMenu, 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 C1RadialMenuItem as in the previous image, follow these 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:
    XAML
    Copy Code
    <Xaml:C1RadialMenuItem Header="C1RadialMenuItem" IsCheckable="True"/>
    
    1. Run the project.
    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.
    2. 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.

    Once you run the project, open the C1RadialMenu. To add a check mark, click the C1RadialMenuItem.

     

    See Also