Search code examples
windows-phone-7swipepanorama-controldisabled-control

WP7 how to disable swiping when there is only one panorama item


I start a very basic Panorama application in Windows Phone 7. In that page is a Panorama control which has only 1 PanoramaItem.

The problem is that user can swipe this panorama. I want to disable this behavior, how to do that ?

P/S: I see that Pivot control does not suffer from this behavior


Solution

  • I see that setting panorama control 's IsEnabled to false can solve my problem

    panorama.IsEnabled = false;