2025-04-24 20:56:44 +08:00
|
|
|
<Page
|
|
|
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
|
|
|
Title="DateAndTimePage"
|
2025-05-05 17:04:06 +08:00
|
|
|
|
2025-04-24 20:56:44 +08:00
|
|
|
d:DataContext="{d:DesignInstance pages:DateAndTimePage,
|
|
|
|
|
IsDesignTimeCreatable=False}"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d"
|
2025-05-05 17:04:06 +08:00
|
|
|
|
|
|
|
|
|
2025-04-24 20:56:44 +08:00
|
|
|
x:Class="WPFluent.Gallery.Views.Pages.DateAndTimePage"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:controls="clr-namespace:WPFluent.Gallery.Controls"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:pages="clr-namespace:WPFluent.Gallery.Views.Pages"
|
2025-05-05 17:04:06 +08:00
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
2025-04-24 20:56:44 +08:00
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
|
|
|
|
|
|
<StackPanel >
|
|
|
|
|
<GroupBox Header="A basic Calendar control">
|
|
|
|
|
<Calendar HorizontalAlignment="Left" />
|
|
|
|
|
</GroupBox>
|
|
|
|
|
<GroupBox>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<ui:CalendarDatePicker
|
|
|
|
|
Content="Pick a date"
|
|
|
|
|
Date="{x:Static sys:DateTime.Today}"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
IsTodayHighlighted="True"
|
|
|
|
|
x:Name="CalendarDatePicker" />
|
|
|
|
|
<ui:TextBlock
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Margin="8,0,0,0"
|
|
|
|
|
Text="{Binding Date, ElementName=CalendarDatePicker}"
|
|
|
|
|
VerticalAlignment="Center" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
<GroupBox Header="DatePicker">
|
|
|
|
|
<DatePicker />
|
|
|
|
|
</GroupBox>
|
|
|
|
|
<GroupBox Header="TimePicker">
|
|
|
|
|
<ui:TimePicker
|
|
|
|
|
ClockIdentifier="Clock12Hour"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
Width="300" />
|
|
|
|
|
</GroupBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Page>
|