Select to view content in your preferred language

WPF Toolkit 2.0 - Overview map error

1315
11
02-14-2011 09:26 AM
JoshuaCorcoran
Emerging Contributor
I have created a WPF Window. If I place the OverviewMap Control in the new window and load the application it freezes at the place where you set the Layer property. If I pull the overview map out of the new window and place it on the form with the map it works perfectly. Is this an known error and is there a work around?
0 Kudos
11 Replies
JoshuaCorcoran
Emerging Contributor
Sure. I just added it as attachment to this post in case other dev will need to do something similar. Kindly see attached WPF project.


Jennifer,

Thanks for the code. This code did not work for me either. When running the application I simply get an empty overview map with an uninitizled layer. I did find a work around though this is what I did. In otherwindow.xaml I created an empty Grid and named it Layoutroot. I then passed the URL to the otherwindow instead of the layer and using the XamlReader constructed the Xaml in C# with the dynamic URL and added it to the empty grid. I discovered this becuase I noticied when I hardcoded the url into your example it worked. Thanks for all your help.

V/R,

Joshua
0 Kudos
JenniferNery
Esri Regular Contributor
It's good that you have it working now. However if hard-coded value worked, then all you need to check are the Binding statement and the Dependency Property if they are set up correctly. I still do not see why you are getting a different behavior with the sample.
0 Kudos