打开日期和时间选择器时的默认日期 [英] Default date when opening the date and time picker

查看:294
本文介绍了打开日期和时间选择器时的默认日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我在wpf

        <
xctk:DateTimePicker Grid.Column="0"  Value="{Binding SelectedDateTime}" Grid.Row="3" Grid.ColumnSpan="4" FontSize="18" FontWeight="Black"/>



现在任何机构都知道如何设置日期和时间吗?打开日期和时间选择器时?



我尝试过:




does any body knows how to set the date and time now? when opening the date and time picker?

What I have tried:

thanks in advance for the help

推荐答案

使用所需的日期时间初始化绑定:SelectedDateTime(应该是视图模型的成员。)
Initialize the binding with the desired date time: SelectedDateTime (which should be a member of your "view model").


这篇关于打开日期和时间选择器时的默认日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆