DateTimePicker.xaml 2.47 KB
<!--
    ****************************************************************
    * 作    者 :姜  彦
    * 项目名称 :RCS.WinClient.Controls.View
    * 控件名称 :DateTimePicker
    * 命名空间 :RCS.WinClient.Controls.View
    * CLR 版本 :4.0.30319.42000
    * 创建时间 :2017/8/4 9:10:14
    * 当前版本 :1.0.0.1
    * My  Email:771078740@qq.com
    * 描述说明:
    *
    * 修改历史:
    *
    ****************************************************************
    * Copyright @ JiangYan 2018 All rights reserved
    ****************************************************************
-->
<UserControl
    x:Class="RCS.WinClient.Controls.View.DateTimePicker"
    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:my="clr-namespace:RCS.WinClient.Controls.View"
    MaxWidth="150"
    MaxHeight="25"
    d:DesignHeight="25"
    d:DesignWidth="150"
    Loaded="UserControl_Loaded"
    mc:Ignorable="d">

    <Grid>

        <Border
            Name="border1"
            Width="150"
            Height="25"
            Margin="0,0,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Center"
            BorderBrush="Silver"
            BorderThickness="1">

            <my:IconButton
                x:Name="iconButton1"
                Width="19"
                Height="18"
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                Click="iconButton1_Click"
                Icon="pack://application:,,,/Controls/Image/date.png" />
        </Border>

        <TextBlock
            Name="textBlock1"
            Width="123"
            Height="23"
            Margin="5,5,0,0"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Text="2017/07/31 18:19:20" />

        <Grid
            x:Name="girdChioce"
            Margin="0,258,0,40"
            VerticalAlignment="Top"
            Background="Transparent">
            <Popup
                x:Name="popChioce"
                AllowsTransparency="True"
                IsOpen="False"
                Placement="Top"
                PlacementTarget="{Binding ElementName=girdChioce}"
                PopupAnimation="Fade"
                StaysOpen="False" />
        </Grid>

    </Grid>
</UserControl>