locked
How to change the icon size of an AppBarButton?

    Question

  • An AppBarButton is used in a Grid, not on an app bar.  I would like to modify its icon size because it is too big.

    The code is something like the following:

    <StackPanel Orientation="Horizontal">
        <CheckBox IsChecked="{Binding bSomeAction}" Content="action name" FontSize="18"/>
        <AppBarButton x:Name="abbSomeActionHelp" Icon="Help" IsCompact="True" VerticalAlignment="Center" />
     </StackPanel>
    Thanks in advance for any tip.


    Hong

    Monday, June 30, 2014 1:24 AM

Answers

  • I guess you could use a scale transform on it.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, June 30, 2014 3:11 PM
    Moderator

All replies

  • AppBarButtons are fixed in their graphical properties.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, June 30, 2014 12:16 PM
    Moderator
  • Matt, thanks for the clarification.  Is there any way to get around this?

    Hong

    Monday, June 30, 2014 12:21 PM
  • I guess you could use a scale transform on it.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Monday, June 30, 2014 3:11 PM
    Moderator
  • Thanks, Matt.  It works!

    Hong

    Monday, June 30, 2014 6:40 PM
  • That works beautifully! Thank you.
    Tuesday, August 26, 2014 12:02 PM