Articles in this section
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.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied