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 - XAML in WebPart

 
 
Old 11-16-2006   #1 (permalink)
Ricko


 
 

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 SpecsSystem Spec
Old 11-16-2006   #2 (permalink)
Laurent Bugnion


 
 

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 SpecsSystem Spec
Old 11-20-2006   #3 (permalink)
Ricko


 
 

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 SpecsSystem Spec
Old 11-20-2006   #4 (permalink)
Laurent Bugnion


 
 

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 SpecsSystem Spec
 

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


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