From 62f2be8823c19fdfe1638246fdb3f674528f7ba3 Mon Sep 17 00:00:00 2001 From: BONNEVILLE Geoffroy Date: Fri, 27 Jul 2018 10:52:23 +0200 Subject: [PATCH] Finally corrected strange behaviour in TextBoxWithButton where text would sometimes not appear unless pointed over --- .../TextBoxWithButtonStyle.xaml | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml index 844293a..b57a4ae 100644 --- a/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml +++ b/ModernKeePass/ResourceDictionaries/TextBoxWithButtonStyle.xaml @@ -82,16 +82,14 @@ - + @@ -143,7 +141,7 @@ Storyboard.TargetProperty="Opacity" Duration="0" To="{ThemeResource TextControlPointerOverBorderThemeOpacity}" /> - @@ -155,7 +153,7 @@ - @@ -169,7 +167,7 @@ - @@ -217,7 +215,6 @@ IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" IsTabStop="False" @@ -228,12 +225,11 @@ Foreground="{ThemeResource TextBoxPlaceholderTextThemeBrush}" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" IsTabStop="False" Grid.ColumnSpan="2" Grid.Column="0" Content="{TemplateBinding PlaceholderText}" IsHitTestVisible="False"/> -