我如何无法处理 WP7 全景视图中的选择更改事件?
我开发了自己的地图控件(类似于 Bing 地图控件),但是当我向右或向左移动该地图时,全景图会更改视图,但是当我移动相同的 bing 地图时,视图不会更改。我如何才能像 Bing 地图中那样执行控件的行为
i have developed my own map control (similar Bing Maps control), but when i move this map to right or left, Panorama changes view, but when i move the same bing map, view doesn't change. How i can do the behaviour of my control similarly as in Bing maps
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是您的控件正在尝试处理手势,全景图也是如此。对于使用该工具的早期版本的很多人来说,这是一个大问题。标准响应始终是避免这种情况,因为它会影响可用性。不幸的是,在某些情况下您确实需要这个。
NoDo 更新(2011 年 3 月)包含一个“修复”,以解决内置控件的此问题。但这对你没有帮助。
幸运的是,有一个解决办法。
当与您的控件进行接触时,您禁用容器上的“IsHitTestVisible”属性,以便它也不会接收您正在捕获的手势。不过,请务必稍后将其设置为abck。
有关更多详细信息,请参阅 http://mine.tuxfamily.org/?p=111。
The issue is that your control is trying to handle gestures and so is the Panorama. This was a big issue for a lot of people in the early version of the tools. The standard response was always to avoid this situation as it has implications for usability. Unfortunately there are some situations where you really need this.
The NoDo update (March 2011) included a "fix" to work around this issue for the built in controls. That doesn't help you though.
Fortunately there is a work around.
When contact is made with your control you disable the "IsHitTestVisible" property on the container so that it doesn't also receive the gestures you are capturing. Be sure to set it abck afterwards though.
See http://mine.tuxfamily.org/?p=111 for more details.