Hi,
I want to highlight the selected date on load of the control. I'm using Xamarin forms and MVVM. This is my Xaml
<Calendar:SfCalendar x:Name="calendar"
MaxDate="{Binding PlanEndDate,
Mode=TwoWay}"
MinDate="{Binding PlanStartDate,
Mode=TwoWay}"
SelectedDate="{Binding SelectedDate,
Mode=TwoWay}"
SelectionMode="SingleSelection"
ShowNavigationButtons="True"
VerticalOptions="FillAndExpand"
ViewMode="MonthView"/>
I have a property in my Viewmodel
private DateTime _selectedate;
public DateTime SelectedDate
{
get { return _selectedate; }
set { Set(() => SelectedDate, ref _selectedate, value); }
}
which is used to fetch the selected date. Now when I tap a date and save the page, I do get the SelectedDate, but I am not able to set the selected date in the control using the Property.