如何让Map.Center瞬间改变
我有一个地图控件,其中心绑定到视图模型中的 GeoCooperative
属性。 每当属性发生变化时,地图的中心就会相应地发生变化。 默认情况下,地图具有用于更改其视图的动画(它逐渐移动到新位置)。 但是,我不想要这个动画。 我希望地图立即以新位置为中心。 我已经设置了地图的动画:AnimationLevel="None"
,但它似乎没有改变任何东西。
动画通常看起来非常漂亮,但是,这个应用程序只处理非常小的视图中的位置。通过对地图中心进行微小的更改,动画只会让一切看起来都在晃动,而且需要很长时间才能完成。
一如既往,如果我需要澄清任何事情,请告诉我。
I have a map control with its center bound to a GeoCoordinate
property in the viewmodel.
The map's center properly changes whenever the property changes.
By default, the map has a animation for changing its view (it gradually moves to the new location).
However, I do not want this animation.
I would like the map to instantly center on the new location.
I have already set the animation of the map: AnimationLevel="None"
, but it didn't seem to change anything.
The animation normally looks really nice, however, this app only deals with locations in a very small view. With small changes to the map's center, the animation just makes everything look like its shaking and it takes too long to finish.
As always, please let me know if I need to clarify anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有相关的问题。尝试将
AnimationLevel
设置为其他值,然后设置回None
I had have related problem. Try to set
AnimationLevel
to something else and than set back toNone