Solved

I need to add a MapPoint control to a WPF Grid

Posted on 2010-08-14
7
735 Views
Last Modified: 2013-11-27
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
0
Comment
Question by:newbieweb
  • 4
  • 3
7 Comments
 
LVL 30

Accepted Solution

by:
Reza Rad earned 500 total points
Comment Utility
0
 

Author Comment

by:newbieweb
Comment Utility
I am trying this but not succeeding...
0
 

Author Comment

by:newbieweb
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Closing Comment

by:newbieweb
Comment Utility
Thanks.
0
 
LVL 30

Expert Comment

by:Reza Rad
Comment Utility
did your problem solved?
if not, upload your xaml here
0
 

Author Comment

by:newbieweb
Comment Utility
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
 
LVL 30

Expert Comment

by:Reza Rad
Comment Utility
your welcome,
glad to help,
Regards,
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now