Solved

I need to add a MapPoint control to a WPF Grid

Posted on 2010-08-14
7
738 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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