![]() |
WPF with Skyline Globe |
Post Reply
|
| Author | |
chocstarfish
Visitor
Joined: September 11 2009 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: WPF with Skyline GlobePosted: September 11 2009 at 6:48am |
|
Is it possible to build a WPF application with Skyline Globe since the latter can only be embeded as an ActiveX control? if yes, can anybody share any experience in developping such application?
I really appreciate that.
|
|
![]() |
|
sagi
Visitor
Joined: September 14 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: September 14 2009 at 9:23am |
|
To add TerraExplorer activex to a wpf application do the following: Add a regular window form, UserControl class (for example MyCtrl).
In the UserControl from designer add the TerraExplorer activex control.
In the WPF page add a tag: <WindowsFormsHost> for this example I will use <WindowsFromsHost Name="_host"/>
In the code part of the WPF you can now set the WindowsFromsHost element child as the UserControl using following api:
_host.Child=new MyCtrl()
|
|
![]() |
|
badams071
Visitor
Joined: April 16 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Posted: July 21 2011 at 7:00pm |
|
Sorry I'm pulling up an old thread, but has anyone had success implementing the Skyline Controls in WPF as stated above? I am concerned about performance drawbacks or if it is negligible.
-Rick
|
|
![]() |
|
sagi
Visitor
Joined: September 14 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: July 24 2011 at 8:28am |
|
see explanation below. You can create a user control that contains the ActiveX. Than you should add the user control to wpf's windowform container.
From there it works perfectly.
If you are working with TE5.x you might need to add a SetParam(7000,2) at initialization.
|
|
![]() |
|
Post Reply
|
|
|
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |