Raised when the user is about to delete a recurring item.
Namespace: MindFusion.Scheduling.Wpf
Assembly: MindFusion.Scheduling.Wpf
SyntaxC#
Copy Code
|
|---|
public event EventHandler<RecurringItemConfirmEventArgs> RecurringItemDeleting |
Visual Basic
Copy Code
|
|---|
Public Event RecurringItemDeleting As EventHandler(Of RecurringItemConfirmEventArgs) |
Event DataRecurringItemDeleting event handlers receive an argument of type RecurringItemConfirmEventArgs.
RemarksThis event can be used to prevent the deletion of recurring items. For non-recurring items, handle the ItemDeleting event.
ExampleThe following example demonstrates how to use RecurringItemDeleting event to ask the user whether he or she wants to delete all items of a recurring pattern or only the selected item(s). The example assumes that calendar already references a Calendar control. The method ConfirmDelete is supposed to return 0 if the user cancels the deletion of the item, 1 if the user chooses that only the selected item is to be deleted, and 2 if the user wants to delete the entire pattern.
C#
Copy Code
|
|---|
// Attach a handler to the event |
Visual Basic
Copy Code
|
|---|
' Attach a handler to the event |
See Also