DatePicker.SelectedDateChanged DatePicker.SelectedDateChanged DatePicker.SelectedDateChanged DatePicker.SelectedDateChanged Event

Definition

Occurs when the date value is changed.

public : event TypedEventHandler<DatePicker, DatePickerSelectedValueChangedEventArgs> SelectedDateChanged
// Register
event_token SelectedDateChanged(TypedEventHandler<DatePicker, DatePickerSelectedValueChangedEventArgs> const& handler) const;

// Revoke with event_token
void SelectedDateChanged(event_token const& cookie) const;

// Revoke with event_revoker
SelectedDateChanged_revoker SelectedDateChanged(auto_revoke_t, TypedEventHandler<DatePicker, DatePickerSelectedValueChangedEventArgs> const& handler) const;
public event TypedEventHandler<DatePicker, DatePickerSelectedValueChangedEventArgs> SelectedDateChanged
Public Event SelectedDateChanged As TypedEventHandler (Of DatePicker, DatePickerSelectedValueChangedEventArgs)
<DatePicker SelectedDateChanged="eventhandler" />

Remarks

When you handle this event, use the OldDate and NewDate properties of the DatePickerSelectedValueChangedEventArgs event data for your logic. These properties use different data types depending on your programming language (C# and Visual Basic use System.DateTimeOffset; Visual C++ component extensions (C++/CX) uses Windows::Foundation::DateTime).