In the SelectionChanged event of my calender, I put a Yes/No popup so the user can tell if he is sure to change the date or not.
Here is the code :
void calendar_SelectionChanged(object sender, SelectionChangedEventArgs e)
MessageBoxResult result =Popup.Show("Are you sure you want to change the selected dates ");
if (result == MessageBoxResult.OK)
the problem is when I select a date and I click on Cancel, the calendar does not seem to finish his "selection", when I hover it I can see the days changed to gray and I have the popup that appears again.
Is there any way to control the process of selection ?
For exemple if there was a method "StopSelection" I'll put it here :
MessageBoxResult result =Popup.Show(
"Are you sure you want to change the selected dates "
(result == MessageBoxResult.OK)
I hope I was clear, please let me know if it's not the case.