wpf datetime format

原文:wpf datetime format

wpf datetime format
<Style TargetType="{x:Type DatePickerTextBox}">
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate>
                        <TextBox x:Name="PART_TextBox" Text="{Binding Path=SelectedDate, StringFormat=‘yyyy-MM-dd‘, 
     RelativeSource={RelativeSource AncestorType={x:Type DatePicker}}}" />
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
wpf datetime format

 

wpf datetime format

上一篇:HTML5 移动开发 (HTML5标签和属性)


下一篇:net core WebApi——定时任务Quartz