map with view model as datacontext

Discussion created by kripsgil on Jul 29, 2013
i have a main view in my application that contains a map control in it, the map control is in a different user control class
so in my map control class i want to bind the graphic layers to data sources that are in the view model data context..
my problem is that it doesnt work
in all of the examples you show the approach of:
GraphicsSource="{Binding Data ,Source={StaticResource MyViewModel}

to connect the binding of the source to a static resource
in my case the view model is not a static resource but an inherited data context and i connect it like this
GraphicsSource="{Binding Data}"

but it just wont bind properly
any ideas why?

thank you very much