From 8524ecfb99f9625c1d037d90f9fd30d575a43001 Mon Sep 17 00:00:00 2001 From: Wjatscheslaw Sujev Date: Mon, 17 Jan 2022 11:54:17 +0100 Subject: [PATCH] Fixed the sizing of parts of the entry editor to use more available space --- src/Moryx.Controls.Demo/Models/EntryClass.cs | 1 + .../EntryEditor/EntryEditor.xaml | 52 +++++++++++-------- 2 files changed, 31 insertions(+), 22 deletions(-) diff --git a/src/Moryx.Controls.Demo/Models/EntryClass.cs b/src/Moryx.Controls.Demo/Models/EntryClass.cs index 120b192..17bc0ed 100644 --- a/src/Moryx.Controls.Demo/Models/EntryClass.cs +++ b/src/Moryx.Controls.Demo/Models/EntryClass.cs @@ -20,6 +20,7 @@ public class EntryClass [Description("Represents a string"), DefaultValue("Some default")] public string ChainOfChars { get; set; } + [Description("This is a very description to reach the max value for the description part to test the ui behavior")] public EntrySubClass SubClass { get; set; } public List ListSubClass { get; set; } diff --git a/src/Moryx.Controls/EntryEditor/EntryEditor.xaml b/src/Moryx.Controls/EntryEditor/EntryEditor.xaml index c450cf8..41f9e69 100644 --- a/src/Moryx.Controls/EntryEditor/EntryEditor.xaml +++ b/src/Moryx.Controls/EntryEditor/EntryEditor.xaml @@ -12,6 +12,7 @@ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:properties="clr-namespace:Moryx.Controls.Properties" xmlns:wpfToolkit="clr-namespace:Moryx.WpfToolkit;assembly=Moryx.WpfToolkit" + xmlns:system="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" x:Name="UserControl" d:DesignHeight="300" d:DesignWidth="810"> @@ -22,16 +23,18 @@ + 200 + 600 - + - @@ -40,7 +43,8 @@ - - - - @@ -99,7 +104,8 @@ - @@ -115,14 +122,15 @@ - @@ -130,7 +138,7 @@ - @@ -138,15 +146,15 @@ - - - @@ -156,7 +164,7 @@ - - + @@ -227,20 +235,20 @@ - - + + - + + Foreground="DarkGray" MaxWidth="300"/> - @@ -260,11 +268,11 @@ + MinWidth="{StaticResource MinWidth}" /> + Click="ItemRequested" MinWidth="140" Width="Auto"/>