1、DataPicker 日期选择控件,带日历。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<Window x:Class="日期日历控件.MainWindow" 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/markupcompatibility/2006" xmlns:local="clr-namespace:日期日历控件" xmlns:sys="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" Title="MainWindow" 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> |
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |