|
1 | 1 | <ResourceDictionary |
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | | - xmlns:local="clr-namespace:Wpf.Ui.Violeta.Controls"> |
| 4 | + xmlns:local="clr-namespace:Wpf.Ui.Violeta.Controls" |
| 5 | + xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"> |
5 | 6 | <ResourceDictionary.MergedDictionaries> |
6 | 7 | <ResourceDictionary Source="pack://application:,,,/Wpf.Ui.Violeta;component/Controls/DateTimePicker/DateTimePicker.xaml" /> |
7 | 8 | </ResourceDictionary.MergedDictionaries> |
|
142 | 143 | </Grid> |
143 | 144 | </Grid> |
144 | 145 |
|
145 | | - <!-- Column header labels --> |
146 | | - <Grid |
147 | | - Grid.Row="0" |
148 | | - VerticalAlignment="Top" |
149 | | - IsHitTestVisible="False"> |
150 | | - <Grid.ColumnDefinitions> |
151 | | - <ColumnDefinition Width="*" /> |
152 | | - <ColumnDefinition Width="1" /> |
153 | | - <ColumnDefinition Width="*" /> |
154 | | - <ColumnDefinition Width="1" /> |
155 | | - <ColumnDefinition Width="Auto" MinWidth="0" /> |
156 | | - <ColumnDefinition Width="1" /> |
157 | | - <ColumnDefinition Width="Auto" MinWidth="0" /> |
158 | | - </Grid.ColumnDefinitions> |
159 | | - <TextBlock |
160 | | - Grid.Column="0" |
161 | | - Padding="0,4" |
162 | | - HorizontalAlignment="Center" |
163 | | - FontSize="11" |
164 | | - Foreground="{DynamicResource DateTimePickerHeaderForeground}" |
165 | | - Text="{Binding HourText, RelativeSource={RelativeSource AncestorType={x:Type local:TimePickerPresenter}}}" /> |
166 | | - <TextBlock |
167 | | - Grid.Column="2" |
168 | | - Padding="0,4" |
169 | | - HorizontalAlignment="Center" |
170 | | - FontSize="11" |
171 | | - Foreground="{DynamicResource DateTimePickerHeaderForeground}" |
172 | | - Text="{Binding MinuteText, RelativeSource={RelativeSource AncestorType={x:Type local:TimePickerPresenter}}}" /> |
173 | | - <TextBlock |
174 | | - x:Name="SecondHeaderText" |
175 | | - Grid.Column="4" |
176 | | - Padding="0,4" |
177 | | - HorizontalAlignment="Center" |
178 | | - FontSize="11" |
179 | | - Foreground="{DynamicResource DateTimePickerHeaderForeground}" |
180 | | - Text="{Binding SecondText, RelativeSource={RelativeSource AncestorType={x:Type local:TimePickerPresenter}}}" |
181 | | - Visibility="Collapsed" /> |
182 | | - </Grid> |
183 | | - |
184 | 146 | <!-- Accept / Dismiss row --> |
185 | 147 | <Grid Grid.Row="1"> |
186 | 148 | <Grid.ColumnDefinitions> |
|
239 | 201 | <DataTrigger Binding="{Binding UseSeconds, RelativeSource={RelativeSource Self}}" Value="True"> |
240 | 202 | <Setter TargetName="PART_SecondHost" Property="Visibility" Value="Visible" /> |
241 | 203 | <Setter TargetName="PART_SecondSpacer" Property="Visibility" Value="Visible" /> |
242 | | - <Setter TargetName="SecondHeaderText" Property="Visibility" Value="Visible" /> |
243 | 204 | </DataTrigger> |
244 | 205 | <!-- Show AM/PM for 12h --> |
245 | 206 | <DataTrigger Binding="{Binding ClockIdentifier, RelativeSource={RelativeSource Self}}" Value="12HourClock"> |
|
341 | 302 | Text="{TemplateBinding MinuteText}" /> |
342 | 303 |
|
343 | 304 | <!-- Clock icon --> |
344 | | - <Grid |
| 305 | + <ui:SymbolIcon |
345 | 306 | Grid.Column="3" |
346 | 307 | Width="32" |
347 | | - HorizontalAlignment="Right" |
348 | | - VerticalAlignment="Center"> |
349 | | - <Path |
350 | | - Width="14" |
351 | | - Height="14" |
352 | | - HorizontalAlignment="Center" |
353 | | - VerticalAlignment="Center" |
354 | | - Data="M 7,1 A 6,6 0 1 1 6.99,1 Z M 7,4 L 7,7 L 10,9" |
355 | | - Fill="Transparent" |
356 | | - Stretch="Fill" |
357 | | - Stroke="{DynamicResource DateTimePickerIconForeground}" |
358 | | - StrokeThickness="1" /> |
359 | | - </Grid> |
| 308 | + HorizontalAlignment="Center" |
| 309 | + VerticalAlignment="Center" |
| 310 | + FontSize="16" |
| 311 | + Foreground="{DynamicResource DateTimePickerIconForeground}" |
| 312 | + Symbol="Clock24" /> |
360 | 313 | </Grid> |
361 | 314 | </Button> |
362 | 315 |
|
|
0 commit comments