3 martie 2012 05:47
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.
10 martie 2012 14:01Proprietar
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.
- Marcat ca răspuns de Richard_BrundrittMicrosoft Employee, Owner 10 martie 2012 14:01
10 martie 2012 16:22
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.
10 martie 2012 18:43ProprietarIt'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.
10 martie 2012 18:56Wonder why they would seal a class like that. Seems like it could be really useful to inherit from. Oh well, thanks anyways.