使用Silverlight工具包在Windows Phone 7上工作并使用DatePicker控件。可以直接显示DatePickerTimePage而不是单击文本框然后加载DatePickeTimePage吗?..
我如何实现这一目标?
< toolkit:DatePicker x:Name =“dtPick”>
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
DateTime d = DateTime.Now;
this.dtPick.DataContext = d;
}