Browse Source

UI-优化TextBoxEx控件

ZhouJieSheng 2 years ago
parent
commit
262260c07f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      PDF Office/Themes/Generic.xaml

+ 2 - 1
PDF Office/Themes/Generic.xaml

@@ -63,8 +63,9 @@
                         <Grid Margin="{TemplateBinding Padding}">
                             <TextBlock
                                 x:Name="placeholder"
-                                Margin="5,0,0,0"
+                                Margin="{Binding ElementName=PART_ContentHost, Path=Margin}"
                                 Padding="{TemplateBinding Padding}"
+                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                 FontSize="{TemplateBinding FontSize}"
                                 Foreground="{TemplateBinding PlaceholderForeground}"
                                 Text="{TemplateBinding PlaceholderText}"