DataPicker日期选择控件,带日历
XAMl:
<Window x:Class="WpfAppDemo2.DataPickerDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfAppDemo2"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="DataPickerDemo" Height="768" Width="1366">
<Window.Resources>
<Storyboard x:Key="UserControlClose">
<DoubleAnimation From="0" To="-1100" Storyboard.TargetName="UserControlTrans" Storyboard.TargetProperty="X" Duration="0:0:0.3"/>
Storyboard>
Window.Resources>
<Window.RenderTransform>
<TranslateTransform x:Name="UserControlTrans"/>
Window.RenderTransform>
<Window.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation From="-1100" To="0" Storyboard.TargetName="UserControlTrans" Storyboard.TargetProperty="X" Duration="0:0:0.5"/>
Storyboard>
BeginStoryboard>
EventTrigger>
Window.Triggers>
<DockPanel DockPanel.Dock="Top">
<Grid>
<Grid.Background>