Xamarin.Forms DatePicker.SetValue(BindableProperty,value)

时间:2018-07-11 14:20:09

标签: xamarin.forms

我想在后面的代码上更改Datepicker的值

 dates.SetValue(BindableProperty?, DateTime.Now);

1 个答案:

答案 0 :(得分:0)

使用Date属性

dates.Date = DateTime.Now;