Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom icon sizes #298

Closed
maurosampietro opened this issue Apr 13, 2016 · 3 comments
Closed

Custom icon sizes #298

maurosampietro opened this issue Apr 13, 2016 · 3 comments

Comments

@maurosampietro
Copy link
Contributor

This is maybe related to #286.

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

@batzen
Copy link
Member

batzen commented Apr 14, 2016

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.

@thepostman2
Copy link

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"/>

@batzen
Copy link
Member

batzen commented May 1, 2024

Was fixed in 10.1

@batzen batzen closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants