示例#1
0
 private void DatePicker_Tapped(object sender, EventArgs e)
 {
     if ((this.BindingContext as OrdonnanceCreateEditViewModel).CanEdit)
     {
         MyDatePicker.Focus();
     }
 }
示例#2
0
 private void OnMyButtonClicked(object sender, EventArgs e)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         if (MyDatePicker.IsFocused)
         {
             MyDatePicker.Unfocus();
         }
         MyDatePicker.Focus();
     });
 }