![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | XAML in WebPart Hi, This might be a silly question but is it possible to build a application using XAML and put it inside a ASP.NET 2.0 web part control? I want the features of web parts in 2.0 but build what sits inside the web part using XAML. Thanks, Rick |
My System Specs![]() |
| | #2 (permalink) |
| | Re: XAML in WebPart Hi, Ricko wrote: > Hi, > > This might be a silly question but is it possible to build a > application using XAML and put it inside a ASP.NET 2.0 web part > control? I want the features of web parts in 2.0 but build what sits > inside the web part using XAML. > > Thanks, Rick In the moment, WPF integration in HTML is possible only through an IFRAME. It works fine with ATLAS, so there's no reason it won't work with Webparts too. Just wrap your IFRAME in a webpart, and set the SRC of the IFRAME to the URL of the XBAP application, or to the loose XAML file. That will work in IE only though. HTH, Laurent -- Laurent Bugnion, GalaSoft Software engineering: http://www.galasoft-LB.ch Private/Malaysia: http://mypage.bluewin.ch/lbugnion Support children in Calcutta: http://www.calcutta-espoir.ch |
My System Specs![]() |
| | #3 (permalink) |
| | Re: XAML in WebPart Thanks for the reply Laurent.. I have one more question.. If had two xbap applications running on one web page (my example would be 2 web parts each containing a xbap app) and have them communicate to each other? So if i selected something in one xbap app i could pass this to the other? Thanks, Rick Laurent Bugnion wrote: > Hi, > > Ricko wrote: > > Hi, > > > > This might be a silly question but is it possible to build a > > application using XAML and put it inside a ASP.NET 2.0 web part > > control? I want the features of web parts in 2.0 but build what sits > > inside the web part using XAML. > > > > Thanks, Rick > > In the moment, WPF integration in HTML is possible only through an > IFRAME. It works fine with ATLAS, so there's no reason it won't work > with Webparts too. > > Just wrap your IFRAME in a webpart, and set the SRC of the IFRAME to the > URL of the XBAP application, or to the loose XAML file. > > That will work in IE only though. > > HTH, > Laurent > -- > Laurent Bugnion, GalaSoft > Software engineering: http://www.galasoft-LB.ch > Private/Malaysia: http://mypage.bluewin.ch/lbugnion > Support children in Calcutta: http://www.calcutta-espoir.ch |
My System Specs![]() |
| | #4 (permalink) |
| | Re: XAML in WebPart Hi, Ricko wrote: > Thanks for the reply Laurent.. > > I have one more question.. > > If had two xbap applications running on one web page (my example would > be 2 web parts each containing a xbap app) and have them communicate to > each other? So if i selected something in one xbap app i could pass > this to the other? > > Thanks, Rick That's not currently possible. XBAP applications running in IFRAMEs (which is currently the only way to integrate them in a HTML page) are running in their own isolated process. To let them communicate, you would have to use some sort of interprocess communication, which is obviously not possible in the Sandbox. Also, since they cannot communicate with their HTML (JavaScript...) environment, any sort of inter-XBAP communication has to go through the server. This last possibility exists, but it's cumbersome. It implies a mailbox running on the server, and both XBAPs polling the server to check if there is a new message in the mailbox. I have a prototype online exploring (amongst other things) communication between XBAPs running in different windows. It's exactly the same mechanism as if they are running in different XBAPs. http://www.galasoft-lb.ch/mydotnet/W...dow/index.html Note that if the XBAPs come from different domains, even web service based communication will be impossible. 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Reporting Services - Report Viewer webpart -- for MOSS on Vista | Vista General | |||
| Is it possible to include XAML files into another XAML file? | .NET General | |||