DatePicker.DateChanged DatePicker.DateChanged DatePicker.DateChanged DatePicker.DateChanged Event

Definition

Occurs when the date value is changed.

public : event EventHandler<DatePickerValueChangedEventArgs> DateChanged
// Register
event_token DateChanged(EventHandler<DatePickerValueChangedEventArgs> const& handler) const;

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

// Revoke with event_revoker
DateChanged_revoker DateChanged(auto_revoke_t, EventHandler<DatePickerValueChangedEventArgs> const& handler) const;
public event EventHandler<DatePickerValueChangedEventArgs> DateChanged
Public Event DateChanged As EventHandler (Of DatePickerValueChangedEventArgs)
<DatePicker DateChanged="eventhandler" />

Remarks

When you handle this event, use the OldDate and NewDate properties of the DatePickerValueChangedEventArgs 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).

See also