Skip to main content

SchedulerControlBase.DependencyPropertyChanged Event

Occurs when any SchedulerControl’s dependency property is changed.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public event DependencyPropertyChangedEventHandler DependencyPropertyChanged

Remarks

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:

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));
        OutputBox.ScrollToEnd();
    }
    if (e.Property == SchedulerControl.SelectedResourceProperty) {
        OutputBox.AppendText(string.Format("SelectedResource is changed. New value is {0} \r\n", ((ResourceItem)e.NewValue).Caption));
        OutputBox.ScrollToEnd();
    }
}
See Also