Skip to content

Commit 8aed05f

Browse files
Rosuaviomichael-hawker
authored andcommitted
Make Balde item better handle WinUI button style
Instead of constrining the buttons size which broke when the style made content in the button take more space threw more padding. Now we have the buttons stretch to the height of the bar.
1 parent b1ce979 commit 8aed05f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Layout/BladeView/BladeView.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@
156156
Background="{TemplateBinding CloseButtonBackground}"
157157
Style="{StaticResource ButtonRevealStyle}"
158158
BorderThickness="1"
159-
Width="32"
160-
Height="32"
159+
VerticalAlignment="Stretch"
161160
Content=""
162161
FontFamily="Segoe MDL2 Assets"
163162
FontSize="14"
@@ -169,8 +168,7 @@
169168
Background="{TemplateBinding CloseButtonBackground}"
170169
Style="{StaticResource ButtonRevealStyle}"
171170
BorderThickness="1"
172-
Width="32"
173-
Height="32"
171+
VerticalAlignment="Stretch"
174172
Content=""
175173
FontFamily="Segoe MDL2 Assets"
176174
FontSize="14"

0 commit comments

Comments
 (0)