Visible dates can be moved to specific date using MoveToDate property available in SfCalendar. It is applicable for all the ViewMode.
You can also refer the following article.
STEP 1: Create a ViewModel class and add a MoveToDate property with specific date.
public class ViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private DateTime moveToDate = new DateTime(2010, 10, 12);
public DateTime MoveToDate
{
get
{
return this.moveToDate;
}
set
{
this.moveToDate = value;
this.OnPropertyChanged("MoveToDate");
}
}
public ViewModel()
{
}
private void OnPropertyChanged(string propertyName)
{
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
STEP 2: Bind the MoveToDate ViewModel property to the MoveToDate property of SfCalendar.
<calendar:SfCalendar x:Name="calendar"
DataSource="{Binding Appointments}"
MoveToDate="{Binding MoveToDate}">
<calendar:SfCalendar.BindingContext>
<local:ViewModel/>
</calendar:SfCalendar.BindingContext>
</calendar:SfCalendar>
Output