0

I have:

<CommandBar ..>
..
<CommandBar.PrimaryCommands>
<AppBarButton Name="btnStop" ToolTipService.ToolTip="btnStop">
                    <FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph="&#xE73B;" Foreground="Red"/>
                </AppBarButton>
</CommandBar.PrimaryCommands>
</CommandBar>

it looks the same way: enter image description here

Is there any way to align Icon in Center? If I set In "Live Explorer Property" Local -> Icon -> Handout Visual -> Offset = <5,0,0> It looks better. How to do the same in code?

user1820916
  • 159
  • 10
  • 2
    Your markup works for me - it is horizontally aligned. Perhaps you have a global style interfering with appbarbutton that is shifting things to the left for you? – Mark W Apr 26 '19 at 14:59
  • @Mark W, thank you a lot for the answer. I will try to find the problem in my own code. – user1820916 Apr 29 '19 at 09:32

1 Answers1

0

if you do not have label, should be LabelPosition="Collapsed"

user1820916
  • 159
  • 10