Solved

I need to add a MapPoint control to a WPF Grid

Posted on 2010-08-14
7
736 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

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 …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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