diff --git a/Fluent.Ribbon/Controls/Button.cs b/Fluent.Ribbon/Controls/Button.cs index cdfb2313e..ff2790e83 100644 --- a/Fluent.Ribbon/Controls/Button.cs +++ b/Fluent.Ribbon/Controls/Button.cs @@ -115,6 +115,44 @@ private static void OnIconChanged(DependencyObject d, DependencyPropertyChangedE } #endregion + #region IconHeight + + /// + /// Gets or sets icon height + /// + public int IconHeight + { + get { return (int)this.GetValue(IconHeightProperty); } + set { this.SetValue(IconHeightProperty, value); } + } + + /// + /// Using a DependencyProperty as the backing store for IconHeight. This enables animation, styling, binding, etc... + /// + public static readonly DependencyProperty IconHeightProperty = + DependencyProperty.Register("IconHeight", typeof(int), typeof(Button), new UIPropertyMetadata(32)); + + #endregion + + #region IconWidth + + /// + /// Gets or sets icon width + /// + public int IconWidth + { + get { return (int)this.GetValue(IconWidthProperty); } + set { this.SetValue(IconWidthProperty, value); } + } + + /// + /// Using a DependencyProperty as the backing store for IconWidth. This enables animation, styling, binding, etc... + /// + public static readonly DependencyProperty IconWidthProperty = + DependencyProperty.Register("IconWidth", typeof(int), typeof(Button), new UIPropertyMetadata(32)); + + #endregion + #region LargeIcon /// diff --git a/Fluent.Ribbon/Themes/Office2010/Controls/Button.xaml b/Fluent.Ribbon/Themes/Office2010/Controls/Button.xaml index 9a843bbef..9c85e17dc 100644 --- a/Fluent.Ribbon/Themes/Office2010/Controls/Button.xaml +++ b/Fluent.Ribbon/Themes/Office2010/Controls/Button.xaml @@ -42,10 +42,10 @@ d:LayoutOverrides="Width, Height">