[英]Prevent FlipView from scrolling
As the title says, I want to prevent the FlipView from scrolling under certain situations. 如标题所述,我想防止FlipView在某些情况下滚动。 Is there a way to do this?
有没有办法做到这一点? (In C# please!)
(请使用C#!)
That's easy. 这很容易。 Set
组
FlipView.IsEnabled = false;
If the above somehow causes undesired visual state of your controls - you can also set 如果以上原因导致控件的视觉状态不理想-您还可以设置
ManipulationMode="All"
on any any item inside of the FlipView to steal control over manipulations from the underlying scroll view. 在FlipView内的任何项目上进行窃取,以从底层滚动视图中窃取对操作的控制权。 This also works on any other controls with a scroll view - like a ListView, GridView or ListBox.
这也适用于具有滚动视图的任何其他控件-如ListView,GridView或ListBox。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.