From 0f73dbe2cd86f04c7365cb17b660391c60b8ac28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Kuklau?= Date: Fri, 14 Oct 2022 16:08:51 +0200 Subject: [PATCH] InfoBar: add basic support for wrapping lengthy `Message` values --- .../Pages/StatusAndInfo/InfoBarPage.xaml | 87 +++++++++++++++---- src/Wpf.Ui/Styles/Controls/InfoBar.xaml | 82 ++++++++--------- 2 files changed, 113 insertions(+), 56 deletions(-) diff --git a/src/Wpf.Ui.Gallery/Views/Pages/StatusAndInfo/InfoBarPage.xaml b/src/Wpf.Ui.Gallery/Views/Pages/StatusAndInfo/InfoBarPage.xaml index a49f19330..6ce5b4097 100644 --- a/src/Wpf.Ui.Gallery/Views/Pages/StatusAndInfo/InfoBarPage.xaml +++ b/src/Wpf.Ui.Gallery/Views/Pages/StatusAndInfo/InfoBarPage.xaml @@ -1,41 +1,61 @@  + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:controls="clr-namespace:Wpf.Ui.Gallery.Controls" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="clr-namespace:Wpf.Ui.Gallery.Views.Pages.StatusAndInfo" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:system="clr-namespace:System;assembly=System.Runtime" + xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" + Title="InfoBarPage" + d:DataContext="{d:DesignInstance local:InfoBarPage, + IsDesignTimeCreatable=False}" + d:DesignHeight="450" + d:DesignWidth="800" + mc:Ignorable="d"> https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Styles/Controls/InfoBar.xaml https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Controls/InfoBar.cs - + - - + + - + - - + + @@ -45,7 +65,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Wpf.Ui/Styles/Controls/InfoBar.xaml b/src/Wpf.Ui/Styles/Controls/InfoBar.xaml index a401bb73c..13d0bbf8d 100644 --- a/src/Wpf.Ui/Styles/Controls/InfoBar.xaml +++ b/src/Wpf.Ui/Styles/Controls/InfoBar.xaml @@ -5,13 +5,13 @@ All Rights Reserved. --> - + 14,16,14,16 1 + 0,7,0,0