The selectionchanged event fires whenever the calendar loads. This is due to the calendar being set to the current date internally. However, it makes it hard to do the following scenario:
- Wire up SelectionChanged event.
- Tap calendar date.
- Navigate to new page on Selection Changed to enter form criteria for some date.
- SelectionChanged fires and page navigates even though no date was tapped. This can be fixed by not wiring the SelectionChanged event until the Loaded event fires (attaching an event from inside an event), however, the event persists when you use backward
navigation. Tapping the date allows the new page to load but when you press Back, the event fires and the page immediately navigates to the other page again.
Add a Tapped event to allow actions to be carried out only if the user taps a date to change it. This would allow the current SelectionChanged functionality to remain as is.