[英]How to prevent WP8 Panorama Control temporarly from sliding?
使用WP7 SDK时,可以使用BlocksPan来防止Panorama控件滑动,例如,如果在其上使用水平Slider控件。 WP8 sdk不再起作用。 微软在该指南中说:不要在全景图上使用滑块。 但是我们的应用程序(以前为wp7设计)确实需要它。
还有其他方法可以防止全景图滑动吗? 如果不遵循准则,我们的应用程序是否会使商店验证失败?
请帮忙 ;)
最好的问候,克里斯
其实很简单,您应该订阅全景控件的ManipulationStarted
事件
m_Panorama.ManipulationStarted += m_Panorama_ManipulationStarted;
void m_Panorama_ManipulationStarted(object sender, System.Windows.Input.ManipulationStartedEventArgs e)
{
m_Panorama.IsHitTestVisible = false;
}
也许您将需要一个布尔变量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.