Exemplo n.º 1
0
        private void LoadMenuItemStyleFromSource(JObject source, MenuItemStyle result)
        {
            LoadButtonStyleFromSource(source, result);

            int value;

            if (source.GetStyle(IconWidthName, out value))
            {
                result.IconWidth = value;
            }

            if (source.GetStyle(ShortcutWidthName, out value))
            {
                result.ShortcutWidth = value;
            }
        }
Exemplo n.º 2
0
        private void LoadMenuItemStyleFromSource(Dictionary <string, object> source, MenuItemStyle result)
        {
            LoadImageTextButtonStyleFromSource(source, result);

            int value;

            if (source.GetStyle(IconWidthName, out value))
            {
                result.IconWidth = value;
            }

            if (source.GetStyle(ShortcutWidthName, out value))
            {
                result.ShortcutWidth = value;
            }
        }
Exemplo n.º 3
0
 public MenuItemStyle(MenuItemStyle style) : base(style)
 {
     IconWidth     = style.IconWidth;
     ShortcutWidth = style.ShortcutWidth;
 }