From f085ba0cd26aee7aac2beb8080ad0bd3aca0f83a Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Wed, 23 Apr 2025 13:40:33 +0200 Subject: [PATCH] [CmdPal] Better support for long labels in empty content and commandbar (#38974) Closes: #38970 Before: image After: image --- .../Microsoft.CmdPal.UI/Controls/CommandBar.xaml | 4 +++- .../Microsoft.CmdPal.UI/ExtViews/ListPage.xaml | 13 +++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml b/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml index 38ea017125..896ee11d0d 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Controls/CommandBar.xaml @@ -71,9 +71,9 @@ Padding="4" ColumnSpacing="8"> - + + Text="{x:Bind ViewModel.EmptyContent.Title, Mode=OneWay}" + TextAlignment="Center" + TextWrapping="Wrap" /> + Text="{x:Bind ViewModel.EmptyContent.Subtitle, Mode=OneWay}" + TextAlignment="Center" + TextWrapping="Wrap" />