基本上,我在全景视图中有一个bing地图控件,当我向左或向右平移时,全景图会改变列。有没有办法避免这种情况?
Video of behavior
谢谢!
发布于 2010-11-17 06:18:33
出于这个原因,建议不要在全景图中使用地图。如果你能够锁定地图,那么Jobi的建议应该对你有效。
下面是Jeff Wilcox的参考:
-“出于许多UX和技术原因,不建议在全景或透视中使用地图控件。导航到子页面。”
发布于 2010-11-17 05:53:02
如果您不需要操作在全景图中显示的地图,请尝试在地图上设置IsEnabled=False
发布于 2011-08-29 15:32:09
将地图放在您自己的控件中,或者创建一个从地图继承的控件(如果可能)。
然后在控件的代码隐藏文件中,放入以下内容。这对我来说很有效:
protected override void OnManipulationStarted(ManipulationStartedEventArgs e)
{
e.Handled = true;
}
protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
{
e.Handled = true;
}
protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
{
e.Handled = true;
}
private void Control_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
}
private void Control_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
}https://stackoverflow.com/questions/4199232
复制相似问题