Fluent.Ribbon icon indicating copy to clipboard operation
Fluent.Ribbon copied to clipboard

Custom icon sizes

Open maurosampietro opened this issue 8 years ago • 2 comments

This is maybe related to #286.

Is there a way we can define custom (bigger than LargeIcon) icon sizes?

maurosampietro avatar Apr 13 '16 09:04 maurosampietro

There is currently no way to that. As noted in #286 @HendrikLynx can start implementing it as soon as i removed the office 2010 and windows 8 themes.

batzen avatar Apr 14 '16 13:04 batzen

Meanwhile there is a workaround if you want bigger LargeIcon on your Fluent:Button. You can redefine LargeSize for the IconPresenter (which holds the icon) using a style definition, see example below:

Example:

      <Style x:Key="FluentXtraLargeImageButton" TargetType="Fluent:Button">
        <Style.Resources>        
          <Style TargetType="Fluent:IconPresenter">
            <Setter Property="LargeSize" Value="120,120"/>
          </Style>
        </Style.Resources>
      </Style>

And:

      <Fluent:Button  Style="{StaticResource FluentXtraLargeImageButton}"
          LargeIcon="My Extra Big Icon.png"
          Size="Large"/>

thepostman2 avatar Mar 24 '22 15:03 thepostman2

Was fixed in 10.1

batzen avatar May 01 '24 16:05 batzen