是否可以在 Windows Phone 中隐藏日期选择器并用按钮显示它。我有这个代码
InitializeComponent();
this.datePicker1.ValueChanged += new EventHandler<DateTimeValueChangedEventArgs>(datePicker1_ValueChanged);
DateTime date = DateTime.Today;
button1.Content = date.ToShortDateString();
...
private void datePicker1_ValueChanged(object sender, DateTimeValueChangedEventArgs e)
{
DateTime date1 = (DateTime)e.NewDateTime;
button1.Content = date1.ToShortDateString();
}
但是如何使用按钮启动日期选择器。