This project is read-only.

Canvas support

Sep 5, 2008 at 9:52 AM
Hi

I have drawn up some elements but so far can only get a single path to render. I created a class that works exactly like the pushpin class but loads different xaml up to draw a shape. What I want to know is if it's possible to do something similar to "UpdateElement(path, projection);" found on line 39 of Pushpin.cs, but make it handle a canvas instead of just a pth, I need a canvas as I want to draw a element that consists of a a few paths and also has some text with it. Is there perhaps another method that I need to call if I want to render a canvas instead of a simple path? Or do I need to inherit something else, other that "Shape"?

Thanks
Q
Sep 6, 2008 at 2:50 AM
this post has some samples to show using a usercontrol as a pin, thus letting you have multi paths in the pin and also the power of a silverlight usercontrol with codebehind 

http://www.codeplex.com/deepearth/Thread/View.aspx?ThreadId=34942
Sep 8, 2008 at 7:21 AM
Thanks!