-
Notifications
You must be signed in to change notification settings - Fork 27
Adding Custom Submenus
Steven Edouard edited this page Oct 25, 2015
·
1 revision
In addition to adding a RadialMenu
submenu, you can also add a custom submenu that is not a RadialMenu
and is derived from the MenuBase
class. For example, we have created MeterSubMenu
and ListSubMenu
based on the MenuBase
class. In the example below, to add a MeterSubMenu
to a RadialMenuButton
, add the RadialMenuButton.CustomMenu
element first, then add a MeterSubMenu
with its properties.
<rmb:RadialMenuButton x:Name="Pen1StrokeButton" IconImage="Icons/stroke.png" Label="Stroke">
<rmb:RadialMenuButton.CustomMenu>
<rm:MeterSubMenu x:Name="Pen1StrokeMenu"
CenterButtonBorder="Black"
MeterEndValue="72"
MeterStartValue="5"
MeterRadius="80"
StartAngle="-90"
MeterPointerLength="80"
RoundSelectValue="True"
OuterEdgeBrush="#383739"
/>
</rmb:RadialMenuButton.CustomMenu>
</rmb:RadialMenuButton>