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

XAML in WebPart

Closed Thread
 
Thread Tools Display Modes
Old 11-15-2006   #1 (permalink)
Ricko
Guest


 

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

Old 11-16-2006   #2 (permalink)
Laurent Bugnion
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
Old 11-16-2006   #3 (permalink)
Laurent Bugnion
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
Old 11-19-2006   #4 (permalink)
Ricko
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


Old 11-19-2006   #5 (permalink)
Ricko
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


Old 11-20-2006   #6 (permalink)
Laurent Bugnion
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
Old 11-20-2006   #7 (permalink)
Laurent Bugnion
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
Closed Thread

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








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