/// <summary> /// Creates the window command button. /// </summary> /// <param name="packIcon">The content of the button.</param> /// <param name="label">The label.</param> /// <returns>The right button.</returns> public static Button CreateWindowCommandButton(MahApps.Metro.IconPacks.PackIconBase packIcon, string label) { var button = CreateWindowCommandButton((FrameworkElement)packIcon, label); packIcon.SetBinding(MahApps.Metro.IconPacks.PackIconBase.ForegroundProperty, new Binding(nameof(Button.Foreground)) { Source = button, Mode = BindingMode.OneWay }); return(button); }
public static System.Windows.Controls.Button CreateWindowCommandButton(MahApps.Metro.IconPacks.PackIconBase packIcon, string label) { }