更新整理
This commit is contained in:
54
WPFluent.Gallery/Views/Pages/DateAndTimePage.xaml
Normal file
54
WPFluent.Gallery/Views/Pages/DateAndTimePage.xaml
Normal file
@@ -0,0 +1,54 @@
|
||||
<Page
|
||||
Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
Title="DateAndTimePage"
|
||||
controls:PageControlDocumentation.Show="False"
|
||||
d:DataContext="{d:DesignInstance pages:DateAndTimePage,
|
||||
IsDesignTimeCreatable=False}"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d"
|
||||
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
||||
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
||||
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"
|
||||
xmlns:sys="clr-namespace:System;assembly=System.Runtime"
|
||||
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>
|
||||
Reference in New Issue
Block a user