Skip to content

Adding Radial Submenus

Steven Edouard edited this page Oct 25, 2015 · 1 revision

To add a RadialMenu submenu to a RadialMenuButton, you can add a RadialMenuButton.Submenu element to your button top level button. Then add a new RadialMenu with its own CenterButton properties, StartAngle, and its own RadialMenuButton elements to the submenu element.

<rmb:RadialMenuButton x:Name="Pan" Label="Pan" Icon="" IconFontFamily="Segoe MDL2 Assets" Type="Radio" InnerAccessKey="P" OuterAccessKey="O">
    <rmb:RadialMenuButton.Submenu>
        <rm:RadialMenu x:Name="PanSubMenu" Diameter="300" StartAngle="-90" OuterArcThickness="20" CenterButtonBorder="Black" CenterButtonIcon="&#x1f369;"
            <rm:RadialMenu.Buttons>
                <rmb:RadialMenuButton Label="Line" Type="Radio" IconImage="Icons/Polygon-50.png" />
                <rmb:RadialMenuButton Label="Select" Type="Radio" IconImage="Icons/Cursor-50.png" />
                <rmb:RadialMenuButton Label="Text" Type="Radio" IconImage="Icons/Text Cursor-50.png" />
            </rm:RadialMenu.Buttons>
        </rm:RadialMenu>
    </rmb:RadialMenuButton.Submenu>
</rmb:RadialMenuButton>