I have implemented a method that handles my ScheduleView's DialogClosing
event. In this method I am determining if the appointment about to be created overlaps with any other appointment and I am prompting the user to confirm their action if an overlap was detected since merging will take place.
In the answer to this thread
, Konstantina mentions
that: "There in the event's arguments, the DialogResult shows whether the ok or cancel button has been clicked
"; however, the CancelRoutedEventArgs
does not have a DialogResult property and I cannot figure out how to retrieve the this information.
So, my question is: how to you retrieve the DialogResult within the ScheduleView's DialogClosing event?
I am looking forward to your advise.