From 761045dfd04d018748db9f776be6665482eb7531 Mon Sep 17 00:00:00 2001 From: eriklimakc Date: Tue, 30 Jul 2024 16:41:04 +0100 Subject: [PATCH 1/6] fix: Place header placeholder to proper place when disabled --- .../Styles/Controls/v2/TextBox.xaml | 21 +- .../Content/Controls/TextBoxSamplePage.xaml | 239 ++++++++++++++++-- 2 files changed, 229 insertions(+), 31 deletions(-) diff --git a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml index 866326aa6..68b04a4ea 100644 --- a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml +++ b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml @@ -358,6 +358,7 @@ + @@ -398,6 +399,13 @@ + + + + + + + @@ -617,13 +625,12 @@ - + - @@ -634,6 +641,8 @@ + + @@ -652,6 +661,13 @@ + + + + + + + @@ -668,7 +684,6 @@ - + + + + + + + + + + + + + + + + + + - - + + @@ -157,6 +186,15 @@ + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -201,6 +384,17 @@ AcceptsReturn="True" /> + + + + + @@ -211,6 +405,17 @@ AcceptsReturn="True" /> + + + + + @@ -238,28 +443,6 @@ - - - - - - - - - - - - - - - - - - From 771692f65457c302aaffaf1adb67c23772110ebc Mon Sep 17 00:00:00 2001 From: eriklimakc Date: Thu, 1 Aug 2024 19:10:02 +0100 Subject: [PATCH 2/6] fix: Add HeaderStates to animate when changes made via code --- .../Styles/Controls/v2/TextBox.xaml | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml index 68b04a4ea..a4cf3e177 100644 --- a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml +++ b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml @@ -466,6 +466,49 @@ + + + + + + + + + + + + + + + + + + + + + + + @@ -722,6 +765,49 @@ + + + + + + + + + + + + + + + + + + + + + + + Date: Fri, 2 Aug 2024 16:59:46 +0100 Subject: [PATCH 3/6] chore: Using special VisualStateGroups to manage animations --- .../Styles/Controls/v2/TextBox.xaml | 314 ++++++++++-------- .../Content/Controls/TextBoxSamplePage.xaml | 38 ++- .../Controls/TextBoxSamplePage.xaml.cs | 38 ++- 3 files changed, 245 insertions(+), 145 deletions(-) diff --git a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml index a4cf3e177..d990be12c 100644 --- a/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml +++ b/src/library/Uno.Material/Styles/Controls/v2/TextBox.xaml @@ -356,16 +356,8 @@ - - - - - - - - - - + + @@ -376,13 +368,6 @@ - - - - - - - @@ -400,12 +385,6 @@ - - - - - - @@ -420,38 +399,11 @@ - - - - - - - @@ -466,45 +418,109 @@ - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + - @@ -666,16 +682,7 @@ - - - - - - - - - - + @@ -684,13 +691,6 @@ - - - - - - - @@ -704,13 +704,6 @@ - - - - - - - @@ -724,35 +717,6 @@ - - - - - - - - - @@ -765,45 +729,109 @@ - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + - diff --git a/src/samples/UWP/Uno.Themes.Samples.Shared/Content/Controls/TextBoxSamplePage.xaml b/src/samples/UWP/Uno.Themes.Samples.Shared/Content/Controls/TextBoxSamplePage.xaml index 169d23c68..b329275f2 100644 --- a/src/samples/UWP/Uno.Themes.Samples.Shared/Content/Controls/TextBoxSamplePage.xaml +++ b/src/samples/UWP/Uno.Themes.Samples.Shared/Content/Controls/TextBoxSamplePage.xaml @@ -10,7 +10,43 @@ mc:Ignorable="d"> - + + + + + + + + + +