OneDrive Developer Center (redirect)

Looking for the Live SDK?

OneDrive logo

The Live SDK 5.6 is now available

Find it on the OneDrive Dev Center, the new place to find samples, documentation, and other resources for integrating OneDrive into your app.
Choose your download

If you're using previous versions of the Live SDK, the Live SDK 5.5 reference is still available.

 none
Silverlight - MapShapeBase help

    질문

  • This is a total newbie question, but where can I go for some intro material on inheriting from MapShapeBase in the Silverlight Bing Maps library?

    It would help if someone had an example of what to pass into the constuctor. I know it is supposed to be an instance of a Shape class, but I don't understand what this means to pass a Shape into the constructor of a MapShapeBase. The XML documentation of this constructor is very vague.


    2012년 3월 3일 토요일 오전 5:47

답변

  • There is not material on how to do this as this would mean you are using the API in an undocumented way which is unsupported. Why do you need to use this class? Use the MapPolyline, MapPolygon and Pushpin classes.


    http://rbrundritt.wordpress.com

    2012년 3월 10일 토요일 오후 2:01
    소유자

모든 응답

  • There is not material on how to do this as this would mean you are using the API in an undocumented way which is unsupported. Why do you need to use this class? Use the MapPolyline, MapPolygon and Pushpin classes.


    http://rbrundritt.wordpress.com

    2012년 3월 10일 토요일 오후 2:01
    소유자
  • Hi Richard,

    I'm just hacking around and was curious how to use the MapShapeBase class to create my own objects that show up on a Bing Map. I know the MapPolyline, MapPolygon, and Pushpin classes exist but these are restrictive in a lot of ways, which is why you went and made MultiMapShapeBase I assume, which is awesome by the way.

    How is inheriting from MapShapeBase undocumented? It has poor documentation, which is why I'm asking this question, but it isn't undocumented.

    2012년 3월 10일 토요일 오후 4:22
  • It's undocumented as there is not documentation on how to use it. In the WPF control the development team has taken it a step further and made this a sealed class to prevent people from inheriting it.

    http://rbrundritt.wordpress.com

    2012년 3월 10일 토요일 오후 6:43
    소유자
  • Wonder why they would seal a class like that. Seems like it could be really useful to inherit from. Oh well, thanks anyways.
    2012년 3월 10일 토요일 오후 6:56
OneDrive Developer Center (redirect)

Looking for the Live SDK?

OneDrive logo

The Live SDK 5.6 is now available

Find it on the OneDrive Dev Center, the new place to find samples, documentation, and other resources for integrating OneDrive into your app.
Choose your download

If you're using previous versions of the Live SDK, the Live SDK 5.5 reference is still available.