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; } }
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; } }
public MenuItemStyle(MenuItemStyle style) : base(style) { IconWidth = style.IconWidth; ShortcutWidth = style.ShortcutWidth; }