The DataManager exposes a set of events that are raised when activities are changed either through UI interaction, via one on the view controls or dialogs, or through code by calling the DataManager’s BeginEdit, BeginEditWithCopy or CreateNew methods, then setting some properties on the activity and then calling the EndEdit method. DataManager’s Remove method also raises the associated activity events.
There are also events raised before dialogs or errors are displayed.
Note: the events ending in "…ing" can be cancelled by setting the Cancel property of the event arguments to true. Canceling the event prevents the data manager from proceeding with the operation in progress.
The following xaml snippet shows how to listen for the various events exposed off xamScheduleDataManager:
<ig:XamScheduleDataManager
ActivityDialogDisplaying=
"XamScheduleDataManager_ActivityDialogDisplaying"
ActivityRecurrenceChooserDialogDisplaying=
"XamScheduleDataManager_ActivityRecurrenceChooserDialogDsplyng"
ActivityAdding=
"XamScheduleDataManager_ActivityAdding"
ActivityAdded=
"XamScheduleDataManager_ActivityAdded"
ActivityChanging=
"XamScheduleDataManager_ActivityChanging"
ActivityChanged=
"XamScheduleDataManager_ActivityChanged"
ActivityRemoving=
"XamScheduleDataManager_ActivityRemoving"
ActivityRemoved=
"XamScheduleDataManager_ActivityRemoved"
ActivitiesDragged=
"XamScheduleDataManager_ActivitiesDragged"
ActivitiesDragging=
"XamScheduleDataManager_ActivitiesDragging"
ActivityResized=
"XamScheduleDataManager_ActivityResized"
ActivityResizing=
"XamScheduleDataManager_ActivityResizing"
Error=
"XamScheduleDataManager_Error"
ErrorDisplaying=
"XamScheduleDataManager_ErrorDisplaing"
ReminderActivated=
"XamScheduleDataManager_ReminderActivated"
ReminderDialogDisplaying=
"XamScheduleDataManager_ReminderDialogDisplaying"
>