![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #2 (permalink) |
| Guest | 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 |
| | #3 (permalink) |
| Guest | 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 |
| | #4 (permalink) |
| Guest | 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 |
| | #5 (permalink) |
| Guest | 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 |
| | #6 (permalink) |
| Guest | 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 |
| | #7 (permalink) |
| Guest | 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 |
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is it possible to include XAML files into another XAML file? | star-italia | .NET General | 6 | 06-12-2008 04:56 AM |
| CAB , WPF < XAML | SenthilVel | Avalon | 1 | 04-16-2007 05:33 PM |
| launching different XAML aplication from another XAML app | SenthilVel | Avalon | 0 | 03-31-2007 09:40 PM |
| How to deploy an XAML-based App with its XAML-UI-File? | Solveigh | Avalon | 11 | 11-08-2006 07:50 AM |
| File.xaml and File.xaml.cs are atomically checked out/in from sourcesafe | Pascal Bourque | Avalon | 1 | 04-26-2006 06:47 PM |