I need to add a MapPoint control to a WPF Grid

I used an ElementHost inside a WinForms application to hold a WPF control, which contains a Grid.  But I would like to add a MapPoint control to that Grid.

Can someone please explain how to do that?

Using Visual Studio Express 2010 I have not added the MapPoint control to the IDE, which I recall I did in the past for Visual Studio 2010.

Please let me know how to proceed.

Thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?
 
newbiewebSr. Software EngineerAuthor Commented:
I am trying this but not succeeding...
0
 
newbiewebSr. Software EngineerAuthor Commented:
I got this far:

- created a new Window Form
- created a WinForms User Control, and added a MapPoint control to it
- created a WPF


I see no event (which they discuss) called "Loaded".

I get it to compile and run, but the MapPoint control is blank.  Any ideas?


 
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
newbiewebSr. Software EngineerAuthor Commented:
Thanks.
0
 
Reza RadCommented:
did your problem solved?
if not, upload your xaml here
0
 
newbiewebSr. Software EngineerAuthor Commented:
I found that I may not have been initializing the dialog properly and the MapPoint initialization was not taking place.

I'll get to the bottom of that in the next few minutes and post another question if needed.

Thanks,
newbieweb
0
 
Reza RadCommented:
your welcome,
glad to help,
Regards,
0
All Courses

From novice to tech pro — start learning today.