WPF地图上的按比例缩小图钉 [英] Scale-down Pushpins on WPF map

查看:94
本文介绍了WPF地图上的按比例缩小图钉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用WPF地图作为嵌入在几个WinForms应用程序中的基于WPF的用户控件。 默认的图钉工作正常,我们正在寻找一种方法来缩小它们(通常客户抱怨它们太大了)。 我想
喜欢继续使用Microsoft.Maps.MapControl.WPF.Pushpin对象,但只想进行一次渲染调整。

We are using the WPF map as a WPF-based user control embedded within several WinForms applications.  The default pushpins work fine, we are just looking for a way to scale them down a bit (generally customers complain they are too large).  I would like to keep using the Microsoft.Maps.MapControl.WPF.Pushpin object, but just want to make that one rendering adjustment.

我研究了现有的帮助在网络上,但没有找到我需要的确切内容。 通常它似乎与地图缩放级别绑定,否则WPF自定义(基于WPF的完整应用程序)很重要。 我真正想要的是在map.children.add
之前,我可以简单地在调用WinForms应用程序中做一些方法来做一些myPushpin.scale或类似的软件将引脚缩小到1/2例如。  

I've studied the existing help on the web but haven't found exactly what I need.  Often it seems bound to the map zoom level or else it is heavy with WPF customizations (full WPF-based apps).  What I'm really seeking is that prior to map.children.add that I can simply have a way in the calling WinForms app to do some soft of myPushpin.scale or similar to scale the pin down to 1/2 size for instance.  

任何帮助对我都非常有益,提前谢谢!

Any assistance would be quite beneficial to me, thanks in advance!

推荐答案

您好吗,

您是否尝试使用交互式SDK中的引脚设置?

Have you tried playing with the pin settings in the interactive SDK?

https://www.bing.com/api/maps/sdk/mapcontrol/isdk/adddefaultpushpin

如果你想控制你的图钉的规模,你可以尝试这里提供的解决方案

https://social.msdn.microsoft.com/Forums/ EN-US / 909162ea-3ac5-4960-82ed-6ddf02eb6ead /改变大小-的定制 - 图钉 - 心不是-WO rking?forum = bingmaps

If you want to control the scale of your pushpin, you could try the solution offered here https://social.msdn.microsoft.com/Forums/en-US/909162ea-3ac5-4960-82ed-6ddf02eb6ead/alter-size-of-custom-pushpin-isnt-working?forum=bingmaps

此致,

IoTGirl

IoTGirl


这篇关于WPF地图上的按比例缩小图钉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆