2012년 3월 3일 토요일 오전 5: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.
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.
- 답변으로 표시됨 Richard_BrundrittMicrosoft Employee, Owner 2012년 3월 10일 토요일 오후 2:01
2012년 3월 10일 토요일 오후 4: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.
2012년 3월 10일 토요일 오후 6:43소유자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.
2012년 3월 10일 토요일 오후 6:56Wonder why they would seal a class like that. Seems like it could be really useful to inherit from. Oh well, thanks anyways.