This project is read-only.

Change Icon Size in Button

Nov 28, 2013 at 11:07 AM
i just created a fluent:button with a defined heigh, icon and text. Now the Text is cuted of on the bottom of the button.
My first idea was to resize the icon this way:
 <Fluent:Button Name="buttonCheese" Height="55">
      <Image Height="24" Source="../Resources/Icons/cheese_32.png"/>
    <Fluent:Button.Header >Add the Cheese</Fluent:Button.Header>
the Icon gets resized that way, but the space will not be availble for the text. I found out with wpf inspector that its in a fixed-size ContentPresenter (IconImage). I can manipulate the size of this item during the runtime via WPF Inspector and it looks fine.

My Question: is there a way to define the size of the contentPresenter containing the Icon in XAML or any other way?

Thanks for the great work!!l

Jan 13, 2014 at 9:04 PM
Could you attach a screenshot?