If you need to disable Pivot gestures in WP7 you only need use the IsHitTestVisible property. This property gets or sets a value that declares whether this element can possibly be returned as a hit test result from some portion of its rendered content.
If you set to true the contained area of this control can be used for hit-testing,
If set this property to false the control will not report any event when the user manipulate it.
In code, you only need mark the IsHitTestVisible property to false.
pivotControl1.IsHitTestVisible = false;
Remember that this action is not a recomended practice in Windows Phone.
No comments:
Post a Comment