Check if DatePicker value is null

Other topics

Usage of the SelectedDate property

The DatePicker class has a property, SelectedDate, which enable you to get or set the selected date. If there is none selected, it means its value will be null.

if (datePicker.SelectedDate == null)
{
    // Do what you have to do
}

Contributors

Topic Id: 4861

Example Ids: 17141

This site is not affiliated with any of the contributors.