From a64438aa08fa60e5080fb4550fc3edf2715a6a68 Mon Sep 17 00:00:00 2001 From: JohanLarsson Date: Tue, 14 Aug 2018 13:53:01 +0200 Subject: [PATCH] UI-test collapsing adorned element for watermark. #24. No repro. --- .../Windows/WatermarkWindow.xaml | 18 +++- .../WatermarkWindowTests.ComboBox.cs | 84 ++++++++++++------- .../WatermarkWindowTests.PasswordBox.cs | 22 +++++ .../WatermarkWindowTests.TextBox.cs | 22 +++++ 4 files changed, 111 insertions(+), 35 deletions(-) diff --git a/Gu.Wpf.Adorners.Demo/Windows/WatermarkWindow.xaml b/Gu.Wpf.Adorners.Demo/Windows/WatermarkWindow.xaml index 47e6a6f..4e6bd4c 100644 --- a/Gu.Wpf.Adorners.Demo/Windows/WatermarkWindow.xaml +++ b/Gu.Wpf.Adorners.Demo/Windows/WatermarkWindow.xaml @@ -35,7 +35,9 @@ - + @@ -79,7 +81,9 @@ - + @@ -124,8 +128,9 @@ + adorners:Watermark.Text="Write something here" + BorderBrush="#FF707070" + Visibility="{Binding ElementName=VisibilityCbx, Path=SelectedItem}"> abc cde fgh @@ -214,6 +219,11 @@ + + Visible + Hidden + Collapsed +