|
@@ -7,7 +7,8 @@
|
|
|
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
- xmlns:sys="using:System">
|
|
|
+ xmlns:sys="using:System"
|
|
|
+ x:ClassModifier="internal">
|
|
|
<Design.PreviewWith>
|
|
|
<Border Height="500"
|
|
|
Padding="20">
|
|
@@ -93,7 +94,7 @@
|
|
|
MinWidth="{DynamicResource TimePickerThemeMinWidth}"
|
|
|
MaxWidth="{DynamicResource TimePickerThemeMaxWidth}"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
- VerticalAlignment="Top"
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
Background="{TemplateBinding Background}"
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
@@ -109,6 +110,7 @@
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch">
|
|
|
<TextBlock x:Name="PART_HourTextBlock"
|
|
|
+ Text="{DynamicResource StringTimePickerHourText}"
|
|
|
Padding="{DynamicResource TimePickerHostPadding}"
|
|
|
HorizontalAlignment="Center"
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
@@ -127,6 +129,7 @@
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch">
|
|
|
<TextBlock x:Name="PART_MinuteTextBlock"
|
|
|
+ Text="{DynamicResource StringTimePickerMinuteText}"
|
|
|
Padding="{DynamicResource TimePickerHostPadding}"
|
|
|
HorizontalAlignment="Center"
|
|
|
FontFamily="{TemplateBinding FontFamily}"
|
|
@@ -139,11 +142,30 @@
|
|
|
Width="{DynamicResource TimePickerSpacerThemeWidth}"
|
|
|
HorizontalAlignment="Center"
|
|
|
Fill="{DynamicResource TimePickerSpacerFill}" />
|
|
|
-
|
|
|
+
|
|
|
<Border x:Name="PART_ThirdPickerHost"
|
|
|
Grid.Column="4"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
VerticalAlignment="Stretch">
|
|
|
+ <TextBlock x:Name="PART_SecondTextBlock"
|
|
|
+ Text="{DynamicResource StringTimePickerSecondText}"
|
|
|
+ Padding="{DynamicResource TimePickerHostPadding}"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{TemplateBinding FontFamily}"
|
|
|
+ FontSize="{TemplateBinding FontSize}"
|
|
|
+ FontWeight="{TemplateBinding FontWeight}" />
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Rectangle Name="PART_ThirdColumnDivider"
|
|
|
+ Grid.Column="5"
|
|
|
+ Width="{DynamicResource TimePickerSpacerThemeWidth}"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Fill="{DynamicResource TimePickerSpacerFill}" />
|
|
|
+
|
|
|
+ <Border x:Name="PART_FourthPickerHost"
|
|
|
+ Grid.Column="6"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalAlignment="Stretch">
|
|
|
<TextBlock x:Name="PART_PeriodTextBlock"
|
|
|
Padding="{DynamicResource TimePickerHostPadding}"
|
|
|
HorizontalAlignment="Center"
|
|
@@ -227,9 +249,24 @@
|
|
|
<RepeatButton Name="PART_MinuteDownButton"
|
|
|
Theme="{StaticResource SimpleDateTimePickerDownButton}" />
|
|
|
</Panel>
|
|
|
+
|
|
|
+ <Panel Name="PART_SecondHost"
|
|
|
+ Grid.Column="4">
|
|
|
+ <ScrollViewer HorizontalScrollBarVisibility="Disabled"
|
|
|
+ VerticalScrollBarVisibility="Hidden">
|
|
|
+ <DateTimePickerPanel Name="PART_SecondSelector"
|
|
|
+ ItemHeight="{DynamicResource TimePickerFlyoutPresenterItemHeight}"
|
|
|
+ PanelType="Second"
|
|
|
+ ShouldLoop="True" />
|
|
|
+ </ScrollViewer>
|
|
|
+ <RepeatButton Name="PART_SecondUpButton"
|
|
|
+ Theme="{StaticResource SimpleDateTimePickerUpButton}" />
|
|
|
+ <RepeatButton Name="PART_SecondDownButton"
|
|
|
+ Theme="{StaticResource SimpleDateTimePickerDownButton}" />
|
|
|
+ </Panel>
|
|
|
|
|
|
<Panel Name="PART_PeriodHost"
|
|
|
- Grid.Column="4">
|
|
|
+ Grid.Column="6">
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled"
|
|
|
VerticalScrollBarVisibility="Hidden">
|
|
|
<DateTimePickerPanel Name="PART_PeriodSelector"
|
|
@@ -264,6 +301,11 @@
|
|
|
Width="{DynamicResource TimePickerSpacerThemeWidth}"
|
|
|
HorizontalAlignment="Center"
|
|
|
Fill="{DynamicResource ThemeControlMidHighBrush}" />
|
|
|
+ <Rectangle Name="PART_ThirdSpacer"
|
|
|
+ Grid.Column="5"
|
|
|
+ Width="{DynamicResource TimePickerSpacerThemeWidth}"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Fill="{DynamicResource ThemeControlMidHighBrush}" />
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Name="AcceptDismissGrid"
|