Solved

I need to add a MapPoint control to a WPF Grid

Posted on 2010-08-14
7
737 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
ID: 33439164
0
 

Author Comment

by:newbieweb
ID: 33440081
I am trying this but not succeeding...
0
 

Author Comment

by:newbieweb
ID: 33440145
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 our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Closing Comment

by:newbieweb
ID: 33440668
Thanks.
0
 
LVL 30

Expert Comment

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

Author Comment

by:newbieweb
ID: 33440764
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
ID: 33440771
your welcome,
glad to help,
Regards,
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

765 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