Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - hosting WPF control like ActiveX at web page

 
 
Old 12-02-2006   #1 (permalink)


 
 

hosting WPF control like ActiveX at web page

How to host WPF cintrol at web page using <object> tag?
How to set/get control's properties from JavaScript at web page?



My System SpecsSystem Spec
Old 12-02-2006   #2 (permalink)
Laurent Bugnion


 
 

Re: hosting WPF control like ActiveX at web page

Hi,

Michael wrote:
> How to host WPF cintrol at web page using <object> tag?
> How to set/get control's properties from JavaScript at web page?


Impossible yet. The only way to integrate an XBAP application in a web
page is by using an IFRAME, and there is no way for JavaScript to
communicate with it.

Wait for WPF/E, supposed to come in CTP this month, and in GoLive in May
2007.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
Old 12-03-2006   #3 (permalink)
Zhou Yong


 
 

Re: hosting WPF control like ActiveX at web page

It's possible to expose WPF control as ActiveX control, Karsten Januszewski has blogged about how to do it ages ago:
WPF Vista Gadgets - Part 2: Using ActiveX
Sheva
My System SpecsSystem Spec
Old 12-03-2006   #4 (permalink)
Douglas Stockwell


 
 

Re: hosting WPF control like ActiveX at web page

If you can trust your assembly (ie. sign and trust the key locally) you
should be able to host a subclass of
System.Windows.Forms.Integration.ElementHost. Then you can use the object
tag, and set properties as per the standard hosting of Windows Forms.

Unfortunately you can't do this without trusting your assembly because the
WindowsFormsIntegration assembly does not allow partially trusted callers.

- Doug

<Michael> wrote in message news:eiDYjDlFHHA.5000@TK2MSFTNGP03.phx.gbl...
> How to host WPF cintrol at web page using <object> tag?
> How to set/get control's properties from JavaScript at web page?
>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
ActiveX Control in IE7 Vista performance & maintenance
ActiveX Control prompt "An ActiveX control on this page might be u Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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