www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - WPF with Skyline Globe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WPF with Skyline Globe

 Post Reply Post Reply
Author
Message
chocstarfish View Drop Down
Visitor
Visitor
Avatar

Joined: September 11 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote chocstarfish Quote  Post ReplyReply Direct Link To This Post Topic: WPF with Skyline Globe
    Posted: 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.Embarrassed
 
Back to Top
sagi View Drop Down
Visitor
Visitor


Joined: September 14 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sagi Quote  Post ReplyReply Direct Link To This Post 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()
Back to Top
badams071 View Drop Down
Visitor
Visitor


Joined: April 16 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote badams071 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sagi View Drop Down
Visitor
Visitor


Joined: September 14 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote sagi Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.047 seconds.