Select to view content in your preferred language

Dynamically Rendered Canvas as Marker Symbol Source

684
0
08-11-2010 09:41 AM
EricMahaffey
Deactivated User
I have a dynamically rendered Canvas object that I want to use as my source on a MarkerSymbol to add to a GraphicsLayer.  I cannot override the ControlTemplate of my MarkerSymbol on the fly unless I have the xaml string of my Canvas (which I do not.  If I did, I could use XamlReader to dynamically create a new ControlTemplate).  How do I add a canvas as the source of a MarkerSymbol dynamically?

Currently as a work-around I am turning the Canvas into a bitmap to make a PictureMarkerSymbol instead.  This is not ideal as I would like to keep the vector format.
0 Kudos
0 Replies