|
9 | 9 | <converters:MathConverter Operation="Divide" x:Key="DivisionMathConverter" />
|
10 | 10 |
|
11 | 11 | <Style x:Key="MaterialDesignTimePicker" TargetType="{x:Type wpf:TimePicker}">
|
12 |
| - <Setter Property="VerticalAlignment" Value="Top"/> |
| 12 | + <Setter Property="VerticalAlignment" Value="Center"/> |
13 | 13 | <Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>
|
14 | 14 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesignTextBoxBorder}" />
|
15 | 15 | <Setter Property="Background" Value="Transparent"/>
|
16 | 16 | <Setter Property="BorderThickness" Value="0 0 0 1"/>
|
17 | 17 | <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
18 | 18 | <Setter Property="IsTabStop" Value="False"/>
|
19 |
| - <Setter Property="Margin" Value="0 12 0 0" /> |
20 | 19 | <Setter Property="wpf:HintAssist.Hint" Value="Select time" />
|
21 | 20 | <Setter Property="ClockStyle" Value="{DynamicResource MaterialDesignClock}" />
|
22 | 21 | <Setter Property="Validation.ErrorTemplate" Value="{StaticResource MaterialDesignValidationErrorTemplate}"/>
|
|
106 | 105 | Margin="0"
|
107 | 106 | Template="{StaticResource TextBoxTemplate}"
|
108 | 107 | />
|
109 |
| - <Button Grid.Column="1" Foreground="{TemplateBinding BorderBrush}" Focusable="False" HorizontalAlignment="Right" Margin="4 0 0 -3" Grid.Row="0" Padding="0" |
110 |
| - x:Name="PART_Button" |
111 |
| - Height="17" |
112 |
| - Template="{StaticResource DropDownButtonTemplate}" /> |
| 108 | + <Button x:Name="PART_Button" |
| 109 | + Grid.Column="1" |
| 110 | + Foreground="{TemplateBinding BorderBrush}" |
| 111 | + Focusable="False" |
| 112 | + HorizontalAlignment="Right" |
| 113 | + Margin="4 0 0 -3" |
| 114 | + Template="{StaticResource DropDownButtonTemplate}" |
| 115 | + Padding="0" |
| 116 | + Height="17" /> |
113 | 117 | <Popup x:Name="PART_Popup" AllowsTransparency="True"
|
114 | 118 | Placement="Custom"
|
115 | 119 | CustomPopupPlacementCallback="{x:Static wpf:CustomPopupPlacementCallbackHelper.LargePopupCallback}"
|
|
0 commit comments