I have used the sfDatePicker and have following code in my xaml :<sfTextLayout:SfTextInputLayout ContainerType="None" Hint="Birth Date" Grid.Column="0">
<DatePicker Date="{Binding Birthdate}" Format="dd-MMM-yyyy"/>
</sfTextLayout:SfTextInputLayout>
Birthdate property is defined in my view model and it has RaisePropertyChanged implemented in property. When page with this control opens, datepicker always opens with default date i.e. current date irrespective of the date set in "BirthDate" variable. I want this control to take the date which I set from code behind instead of default value.
Another issue is data type of variable Birthdate is nullable datetime hence when its value is null, picker control should not show any date value and remain blank however upon encountering null value picker control shows default value i.e. current date.
Can you provide fix for above two issues?