ComponentOne Basic Library for UWP
Basic Library Overview / Radial Menu for UWP / Radial Menu for UWP Task-Based Help / Adding an Icon to a Radial Menu Item
In This Topic
    Adding an Icon to a Radial Menu Item
    In This Topic

    In this step, you will learn how to add an icon to a C1RadialMenuItem|tag=C1RadialMenuItem_Class.

    In XAML

    Complete the following steps:

    1. Add an icon image to your Universal Windows project. A 12x12 pixel image is best.
    2. Add the following XAML markup between the <Xaml:C1RadialMenuItem> and </Xaml:C1RadialMenuItem> tags, replacing the value of the Source property with your image's name:
    Markup
    Copy Code
    <Xaml:C1RadialMenuItem.Icon>
         <Image Source="YourImage.png" Height="12" Width="12" Margin="5,0,0,0"/>
    </Xaml:C1RadialMenuItem.Icon>
    
    1. Run the project.

    This Topic Illustrates the Following:

    The following image depicts a C1RadialMenuItem with a 12x12 pixel icon.

    See Also