Skip to content

Commit 4f86c9b

Browse files
committed
Add DefaultMargin
1 parent 88e5e5c commit 4f86c9b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.DatePicker.xaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@
105105
<Setter Property="CalendarStyle" Value="{StaticResource MaterialDesignDatePickerCalendarPortrait}"/>
106106
<Setter Property="IsTodayHighlighted" Value="True"/>
107107
<Setter Property="SelectedDateFormat" Value="Short"/>
108-
<Setter Property="BorderThickness" Value="0 0 0 1"/>
109-
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
110-
<Setter Property="Template">
108+
<Setter Property="BorderThickness" Value="0 0 0 1"/>
109+
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
110+
<Setter Property="Margin" Value="0 12 0 0" />
111+
<Setter Property="Template">
111112
<Setter.Value>
112113
<ControlTemplate TargetType="{x:Type DatePicker}">
113114
<Grid>

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PasswordBox.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<Setter Property="Background" Value="Transparent"/>
1818
<Setter Property="CaretBrush" Value="{Binding RelativeSource={RelativeSource Self}, Path=BorderBrush}"/>
1919
<Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
20+
<Setter Property="Margin" Value="0 12 0 0" />
2021
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
2122
<Setter Property="VerticalContentAlignment" Value="Bottom"/>
2223
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.TimePicker.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<Setter Property="BorderThickness" Value="0 0 0 1"/>
1414
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
1515
<Setter Property="IsTabStop" Value="False"/>
16+
<Setter Property="Margin" Value="0 12 0 0" />
1617
<Setter Property="wpf:TextFieldAssist.Hint" Value="Select time" />
1718
<Setter Property="ClockStyle" Value="{DynamicResource MaterialDesignClock}" />
1819
<Setter Property="ClockHostContentControlStyle">

0 commit comments

Comments
 (0)