Hi,
I'm wondering whether I can intercept a "SelectionChanging" event. While there is a "SelectionChanged" event exposed, I would like to implement my own custom logic to manipulate SelectionStart and SelectionEnd when the user changes the selection before the changes are committed. The logic I would like to implement is for the SelectionStart and SelectionEnd to snap to the nearest hour if the selection period is less than a day, or snap to the nearest day if the selection period is over a day (This logic is more complex than what the IsSnapToIntervalEnabled property provides). While I can change the SelectionStart and SelectionEnd in the SelectedChanged event, this causes the SelectedChanged event to trigger again when I change one of these values.
Kind regards,
Dave.
I'm wondering whether I can intercept a "SelectionChanging" event. While there is a "SelectionChanged" event exposed, I would like to implement my own custom logic to manipulate SelectionStart and SelectionEnd when the user changes the selection before the changes are committed. The logic I would like to implement is for the SelectionStart and SelectionEnd to snap to the nearest hour if the selection period is less than a day, or snap to the nearest day if the selection period is over a day (This logic is more complex than what the IsSnapToIntervalEnabled property provides). While I can change the SelectionStart and SelectionEnd in the SelectedChanged event, this causes the SelectedChanged event to trigger again when I change one of these values.
Kind regards,
Dave.