From f636e805dce854e187987afd061d8325abcdd1be Mon Sep 17 00:00:00 2001 From: Yoojun Zhou Date: Wed, 30 Oct 2024 13:44:37 +0800 Subject: [PATCH] Fix AppBarButton text not center aligned --- .../Windows/CommandBar/AppBarButton.xaml | 4 ++ .../ControlPages/AppBarButtonPage.xaml | 37 ++++--------------- .../ControlPages/AppBarButtonPage.xaml.cs | 27 ++++++++++---- 3 files changed, 30 insertions(+), 38 deletions(-) diff --git a/source/iNKORE.UI.WPF.Modern.Controls/Controls/Windows/CommandBar/AppBarButton.xaml b/source/iNKORE.UI.WPF.Modern.Controls/Controls/Windows/CommandBar/AppBarButton.xaml index a9c7a6f1..792b9ab8 100644 --- a/source/iNKORE.UI.WPF.Modern.Controls/Controls/Windows/CommandBar/AppBarButton.xaml +++ b/source/iNKORE.UI.WPF.Modern.Controls/Controls/Windows/CommandBar/AppBarButton.xaml @@ -162,6 +162,10 @@ + + + + diff --git a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/AppBarButtonPage.xaml b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/AppBarButtonPage.xaml index 6493f3c6..83c6481c 100644 --- a/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/AppBarButtonPage.xaml +++ b/source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/AppBarButtonPage.xaml @@ -11,41 +11,18 @@ d:DesignWidth="800" mc:Ignorable="d"> - + + - - - - - - - - - - - <ui:AppBarButton Icon="Like" Label="SymbolIcon" Click="AppBarButton_Click"/> - - - - - - - + --> + - + --> @@ -72,7 +49,7 @@ Click="AppBarButton_Click" Label="FontIcon"> - + @" + + + + + +"; + + + + #endregion } }