Ejemplo n.º 1
0
        private RadialMenuButton CreateColorRadialMenuButtonWithSubMenu(Color sourceColor, double subMenuButtonCount)
        {
            var colorButton = CreateColorRadialMenuButton(sourceColor);
            colorButton.Submenu = new RadialMenu();

            for (var i = 0; i < subMenuButtonCount; i++)
            {
                var lightenFactor = (float) i/10;
                colorButton.Submenu.AddButton(CreateColorRadialMenuButton(sourceColor.Lighten(lightenFactor)));
            }

            return colorButton;
        }
Ejemplo n.º 2
0
 private RadialMenuButton CreateColorRadialMenuButton(Color sourceColor)
 {
     return new RadialMenuButton
     {
         InnerNormalColor = sourceColor,
         InnerHoverColor = sourceColor.Lighten(),
         InnerReleasedColor = sourceColor,
         InnerTappedColor = sourceColor,
         OuterNormalColor = _buttonColors["OuterNormalColor"],
         OuterHoverColor = _buttonColors["OuterHoverColor"],
         OuterDisabledColor = _buttonColors["OuterDisabledColor"]
     };
 }