I have been trying out XamGeographicMap in MVVM pattern, and when I tried to bind the properties of ShapeFileConverter binding fails and nothing shows up in the UI, since ShapeFileConverter is unparented, neither in visual nor in the logical tree.
How to handle this situation? is there any other way around?
<ig:ShapefileConverter x:Key="shapeFileConverter"
DatabaseSource="{Binding DatabaseFile}"
ShapefileSource="{Binding ShapeFile}"/>
Any help would be appreciated.
Hello,
ShapefileConverter doesn’t have DataContext, because it is not a FrameworkElement. We can suggest you to use the StaticResource DataContext proxy approach described here:
http://blogs.infragistics.com/blogs/devin_rader/archive/2011/04/29/binding-to-properties-of-non-frameworkelements.aspx
Hope this helps!
Thanks,
Diyan Dimitrov
Thank you Dimitrov!
I'll try on my side.
Vasu.