/// <summary> /// Initialize a new instance <see cref="StatusBarButton"/> /// </summary> public StatusBarButton(StatusBar owner, StatusBarShortcutKey shortcutKey) { this.owner = owner; Background = owner.Background; Foreground = owner.Foreground; StatusBarShortcutKey = shortcutKey; Padding = Thickness.Empty; }
/// <summary> /// Initialize a new instance <see cref="StatusBarButton"/> /// </summary> public StatusBarButton(StatusBar owner, StatusBarShortcutKey shortcutKey, string text) : this(owner, shortcutKey) { Text = text; }