SchedulerControlBase.DependencyPropertyChanged Event

Occurs when any SchedulerControl's dependency property is changed.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v20.1.dll


public event DependencyPropertyChangedEventHandler DependencyPropertyChanged
Public Event DependencyPropertyChanged As DependencyPropertyChangedEventHandler

Event Data

The DependencyPropertyChanged event's data class is DependencyPropertyChangedEventArgs. The following properties provide information specific to this event:

Property Description
NewValue Gets the value of the property after the change.
OldValue Gets the value of the property before the change.
Property Gets the identifier for the dependency property where the value change occurred.


Handle this event to determine whether a certain dependency property is changed.

This event can be used instead of the legacy SchedulerControl.SelectionChanged event, as illustrated in the following code snippet:


The complete sample project How to obtain the appointment, resource or time interval selected by an end-user is available in the DevExpress Examples repository.

private void schedulerControl_DependencyPropertyChanged(object sender, DependencyPropertyChangedEventArgs e)
    SchedulerControl scheduler = sender as SchedulerControl;
    if (e.Property == SchedulerControl.SelectedIntervalProperty)
        OutputBox.AppendText(string.Format("SelectedInterval is changed. New value is {0} \r\n", e.NewValue));
    if (e.Property == SchedulerControl.SelectedResourceProperty)
        OutputBox.AppendText(string.Format("SelectedResource is changed. New value is {0} \r\n", ((ResourceItem)e.NewValue).Caption));


See Also