Category / Section
How to cancel the months navigation on swipe?
1 min read
You can cancel the month navigation on swipe by handling the ManipulationStarted event. Refer to the following code.
XAML
<Input:SfCalendar x:Name="Calendar" ManipulationStarted="Calendar_ManipulationStarted"/>
C#
private void Calendar_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { e.Complete(); }
Note: The complete method prevents the process of other manipulation events. It is a generic way to handle the manipulation for all the WP controls.