MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




WPF and Mappoint Control

This is a discussion on WPF and Mappoint Control within the Development forums, part of the MapPoint 2006/2009 Discussion category; Does anyone know of a way for me to get the mappoint control working in my WPF app? I assume ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 06-04-2008
Nick
White Belt
 
Join Date: May 2008
Posts: 1
WPF and Mappoint Control

Does anyone know of a way for me to get the mappoint control working in my WPF app? I assume using the windows forms host, but I am a little lost..

I am using VS2008(obv) and C#
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-05-2008
Junior Member
White Belt
 
Join Date: Jun 2008
Posts: 5
Re: WPF and Mappoint Control

you should first add reference to windowsformsintegration,
then

- create an userControl Form (not wpf)
- add MapPoint reference, then you can add a MapPoint Control to your userControl Form
- in your xaml add something like :

Code:
<WindowsFormsHost x:Name="zoneAx" Canvas.Top="60" Canvas.Left="10" Width="780" Height="300">
</WindowsFormsHost>
 
- in the constructor of your window, add the event loaded :

Code:
this.Loaded += newRoutedEventHandler(Window1_Loaded);
 
- in the loaded method :

Code:
this.zoneAx.Child = new MyUserControl();
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
control, mappoint, wpf


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/wpf-mappoint-control-7768.html

Posted By For Type Date
Map Individual U.S. States in MapPoint - MP2K Magazine This thread Refback 06-09-2008 10:34 AM
Routene Excel and MapPoint Update - MapPoint Articles - MP2K Magazine This thread Refback 06-08-2008 09:52 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Re: Keyboard control in mappoint activex control djcapslock MapPoint 2006/2009 Discussion 1 03-10-2005 11:16 AM
Using MapPoint Control for Web App Attila MapPoint 2006/2009 Discussion 1 01-11-2005 10:36 AM
MapPoint Control in ASP technohippie MapPoint 2006/2009 Discussion 2 11-22-2004 05:25 PM
i need the mappoint control 9 please Anonymous MapPoint 2006/2009 Discussion 3 04-22-2004 10:41 AM
I am using MapPoint Control in another Ac.... Anonymous MapPoint 2006/2009 Discussion 1 11-23-2001 09:29 AM


All times are GMT -5. The time now is 01:36 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55