[英]UWP Disable Left-Right-Swipe by Pivot
I have a Pivot with four PivotItems. 我有一个带有四个PivotItems的Pivot。 In the second PivotItem, is the Content an UserControl.
在第二个PivotItem中,Content是一个UserControl。 In this UserControl I placed a Button.
在此UserControl中,我放置了一个按钮。 I want to disable the Left-Right Swipe-Event If I press the button...
如果我按下按钮,我想禁用左右滑动事件...
Any ideas? 有任何想法吗?
From the MSDN docs : https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.pivot.aspx 来自MSDN文档: https : //msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.pivot.aspx
IsLocked Read/write Gets or sets whether the Pivot is locked to show only the current PivotItem. IsLocked读/写获取或设置是否将数据透视表锁定为仅显示当前的PivotItem。 While the Pivot is locked, all other PivotItems are removed, and the user cannot navigate to them.
枢轴被锁定后,所有其他PivotItem都将被删除,并且用户无法导航到它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.