gpt4 book ai didi

c# - 如何防止WP8全景控件暂时滑动?

转载 作者:太空宇宙 更新时间:2023-11-03 16:17:57 25 4
gpt4 key购买 nike

使用 WP7 SDK 可以使用 BlocksPan 来防止全景控件滑动,例如如果您在其上使用水平 slider 控件。这不再适用于 WP8 sdk。微软在那里的指导方针中说:只是不要在全景图上使用 slider 。但是我们的应用程序(以前是为 wp7 设计的)确实需要它。

有没有其他方法可以防止全景图滑动?如果我们不遵守指南进行商店验证,我们的应用程序是否会无法通过商店验证?

请帮忙;)

最好的问候,克里斯

最佳答案

其实很简单你应该订阅全景控件的ManipulationStarted事件

    m_Panorama.ManipulationStarted += m_Panorama_ManipulationStarted;


void m_Panorama_ManipulationStarted(object sender, System.Windows.Input.ManipulationStartedEventArgs e)
{
m_Panorama.IsHitTestVisible = false;
}

也许你还需要一个 bool 变量

关于c# - 如何防止WP8全景控件暂时滑动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15112379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com