Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

hosting WPF control like ActiveX at web page

Closed Thread
 
Thread Tools Display Modes
Old 12-02-2006   #1 (permalink)
Guest


 

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?


Old 12-02-2006   #2 (permalink)
Laurent Bugnion
Guest


 

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
Old 12-02-2006   #3 (permalink)
Laurent Bugnion
Guest


 

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
Old 12-03-2006   #4 (permalink)
Zhou Yong
Guest


 

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
Old 12-03-2006   #5 (permalink)
Zhou Yong
Guest


 

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
Old 12-03-2006   #6 (permalink)
Douglas Stockwell
Guest


 

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?
>


Old 12-03-2006   #7 (permalink)
Douglas Stockwell
Guest


 

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?
>


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Control in IE7 trosas Vista performance & maintenance 4 07-09-2007 12:40 PM
ActiveX Control prompt "An ActiveX control on this page might be u =?Utf-8?B?UmFodWw=?= Vista General 2 08-01-2006 11:08 AM
Re: Hosting a XAML page within a Winform. Jason Avalon 2 02-08-2006 11:32 AM
Hosting a XAML page within a Winform. Jason Avalon 0 02-08-2006 11:32 AM
Hosting a XAML page within a Winform. Jason Avalon 3 02-04-2006 03:37 AM








Vistax64.com 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 2005-2008

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