如何在xamarin.forms的CalendarView中设置SelectedDate

如何在xamarin.forms的CalendarView中设置SelectedDate,xamarin.forms,calendarview,Xamarin.forms,Calendarview,我正在研究xamarin.forms。我正在应用程序中使用CalendarView。当我试图在日历打开时设置SelectedDate时,它不会反映在视图上。但在调试期间,我发现值绑定正确。但不考虑日历视图。我的代码如下: CalendarView _calendarView; _calendarView = new CalendarView (); _calendarView.MinDate = DateTime.Parse ("01/01/170

我正在研究xamarin.forms。我正在应用程序中使用CalendarView。当我试图在日历打开时设置SelectedDate时,它不会反映在视图上。但在调试期间,我发现值绑定正确。但不考虑日历视图。我的代码如下:

  CalendarView _calendarView;
  _calendarView = new CalendarView ();
                    _calendarView.MinDate = DateTime.Parse ("01/01/1700");
                    _calendarView.MaxDate = DateTime.Parse ("12/31/2025");
                    _calendarView.DateSelected += _calendarView_DateSelected;
                    _calendarView.SelectedDate=Convert.ToDateTime("12/10/2015 12:00:00 AM");
                    _calendarView.BackgroundColor=Color.FromRgb(72,110,195);
                    _calendarView.SelectedDateBackgroundColor=Color.Red;
                    _calendarView.SelectedDateForegroundColor=Color.White;
有人知道我做错了什么吗

问候,,
Anand Dubey

试试这个:

[Android.Runtime.Register("setDate", "(JZZ)V", "GetSetDate_JZZHandler")]
public virtual Void SetDate (Int64 date, Boolean animate, Boolean center)