I have following code for showing the control:
<syncfusion:SfCalendar x:Name="DueDate"
HorizontalAlignment="Left"
Background="#383842"
Width="250"
Height="250"
SelectionMode="Single"
ShowNavigationButton="True"
FirstDayofWeek="Monday"
PreviousScrollButtonTemplate="{ThemeResource PreviousButtonTemplate}"
NextScrollButtonTemplate="{ThemeResource NextButtonTemplate}"
HeaderTemplate="{ThemeResource HeaderTemplate}"
CellTemplate="{ThemeResource Template}"
BorderBrush="#383842"
BorderThickness="5"
SelectedDateBackground="Red"
SelectedDate="{Binding RegistrationDate, Mode=TwoWay}"
DisplayDate="{Binding RegistrationDate, Mode=TwoWay}">
</syncfusion:SfCalendar>
As can be seen that I am binding RegistrationDate to both SelectedDate and DisplayDate properties of the control.
RegistrationDate == DateTime.Now;
But when I am setting my RegistrationDate property from my code-behind it is not being highlighted on SfCalendar control.
How can I resolve this?