|
31 | 31 |
|
32 | 32 | <Thickness x:Key="PasswordBoxBorderThemeThickness">1,1,1,1</Thickness> |
33 | 33 | <Thickness x:Key="PasswordBoxAccentBorderThemeThickness">0,0,0,1</Thickness> |
34 | | - <Thickness x:Key="PasswordBoxLeftIconMargin">10,8,0,0</Thickness> |
35 | | - <Thickness x:Key="PasswordBoxRightIconMargin">0,8,10,0</Thickness> |
36 | | - <Thickness x:Key="PasswordBoxButtonMargin">0,5,4,0</Thickness> |
| 34 | + <Thickness x:Key="PasswordBoxLeftIconMargin">10,0,0,0</Thickness> |
| 35 | + <Thickness x:Key="PasswordBoxRightIconMargin">0,0,10,0</Thickness> |
| 36 | + <Thickness x:Key="PasswordBoxButtonMargin">0,0,4,0</Thickness> |
37 | 37 | <Thickness x:Key="PasswordBoxButtonPadding">0,0,0,0</Thickness> |
38 | 38 | <system:Double x:Key="PasswordBoxButtonHeight">24</system:Double> |
39 | 39 | <system:Double x:Key="PasswordBoxButtonIconSize">14</system:Double> |
|
182 | 182 | x:Name="ControlIconLeft" |
183 | 183 | Grid.Column="0" |
184 | 184 | Margin="{StaticResource PasswordBoxLeftIconMargin}" |
185 | | - VerticalAlignment="Top" |
| 185 | + VerticalAlignment="Center" |
186 | 186 | Content="{TemplateBinding Icon}" |
187 | 187 | TextElement.FontSize="16" |
188 | 188 | TextElement.Foreground="{TemplateBinding Foreground}" /> |
|
196 | 196 | x:Name="PlaceholderTextBox" |
197 | 197 | Margin="0" |
198 | 198 | Padding="1,0" |
199 | | - VerticalAlignment="Top" |
| 199 | + VerticalAlignment="Center" |
200 | 200 | Foreground="{DynamicResource TextControlPlaceholderForeground}" |
201 | 201 | Text="{TemplateBinding PlaceholderText}" /> |
202 | 202 | </Grid> |
|
210 | 210 | Margin="{StaticResource PasswordBoxButtonMargin}" |
211 | 211 | Padding="{StaticResource PasswordBoxButtonPadding}" |
212 | 212 | HorizontalAlignment="Center" |
213 | | - VerticalAlignment="Top" |
| 213 | + VerticalAlignment="Center" |
214 | 214 | HorizontalContentAlignment="Center" |
215 | 215 | VerticalContentAlignment="Center" |
216 | 216 | Appearance="Secondary" |
|
236 | 236 | Margin="{StaticResource PasswordBoxButtonMargin}" |
237 | 237 | Padding="{StaticResource PasswordBoxButtonPadding}" |
238 | 238 | HorizontalAlignment="Center" |
239 | | - VerticalAlignment="Top" |
| 239 | + VerticalAlignment="Center" |
240 | 240 | HorizontalContentAlignment="Center" |
241 | 241 | VerticalContentAlignment="Center" |
242 | 242 | Appearance="Secondary" |
|
258 | 258 | x:Name="ControlIconRight" |
259 | 259 | Grid.Column="4" |
260 | 260 | Margin="{StaticResource PasswordBoxRightIconMargin}" |
261 | | - VerticalAlignment="Top" |
| 261 | + VerticalAlignment="Center" |
262 | 262 | Content="{TemplateBinding Icon}" |
263 | 263 | TextElement.FontSize="16" |
264 | 264 | TextElement.Foreground="{TemplateBinding Foreground}" /> |
|
0 commit comments