Files
ShrlAlgoToolkit/WPFluent.Gallery/Views/Pages/DateAndTimePage.xaml

54 lines
2.2 KiB
Plaintext
Raw Normal View History

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>
2025-07-11 09:20:23 +08:00
<GroupBox Header="DatePicker">
2025-04-24 20:56:44 +08:00
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
2025-07-11 09:20:23 +08:00
<ColumnDefinition Width="*" />
2025-04-24 20:56:44 +08:00
</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" />
2025-07-11 09:20:23 +08:00
<DatePicker Width="120" Grid.Column="2" HorizontalAlignment="Right"/>
2025-04-24 20:56:44 +08:00
</Grid>
</GroupBox>
2025-07-11 09:20:23 +08:00
2025-04-24 20:56:44 +08:00
<GroupBox Header="TimePicker">
<ui:TimePicker
ClockIdentifier="Clock12Hour"
HorizontalAlignment="Left"
Width="300" />
</GroupBox>
</StackPanel>
</Page>