Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Avalon

xaml

Reply
 
Thread Tools Display Modes
Old 11-25-2007   #1 (permalink)
arunonw3
Guest
 
Posts: n/a

xaml

Please answer me

1. Is XAML maily aiming windows. Why is the controls on double click
not produce the event handlers in the c# file( code behind or
something ...)

2. XAML web browser applications doesnt need IIS? Then can we use it
for server side programming? If yes how is it working?

3.How to use the asp.net objects from xaml (web) page. Or is there any
other method which is specific to xaml for this functionality
  Reply With Quote

Old 11-25-2007   #2 (permalink)
Laurent Bugnion, MVP
Guest
 
Posts: n/a

Re: xaml

Hi,

You should ask WPF questions on the MSDN forum at
http://forums.microsoft.com/MSDN/Sho...D=119&SiteID=1

Nonetheless:

arunonw3@xxxxxx wrote:
Quote:

> Please answer me
>
> 1. Is XAML maily aiming windows. Why is the controls on double click
> not produce the event handlers in the c# file( code behind or
> something ...)
XAML is a serialization language. You can use it for WPF (UI),
Silverlight (UI), but also for Workflow Foundation (non-UI), etc... It
can be used to serialize any CLR object.

I am not sure in which environment you work to make WPF applications
with XAML. With Expression Blend, you can select an element, and enter
an event name in the Properties pane. This will automatically create the
corresponding event handler in the code behind. If you use VS2008, the
XAML editor offers a popup whenever you type an event name in a XAML
element, and creates the event handler in the code behind. In Cider (WPF
designer in VS2008), I am not sure what happens. This is a work in
progress anyway.
Quote:

> 2. XAML web browser applications doesnt need IIS? Then can we use it
> for server side programming? If yes how is it working?
XAML browser applications (XBAPs) run on the client. They are served
from a web server (which can be IIS, but doesn't need to be). Then the
WPF app can communicate with the server using ASMX web services, WCF or
any web request.

I am not sure what your scenario would be to use XAML on the server. If
you don't use it for UI, as I said, you can use it for any serialization
work.
Quote:

> 3.How to use the asp.net objects from xaml (web) page. Or is there any
> other method which is specific to xaml for this functionality
XBAPs are not web applications. They are rich applications deployed
using the web browser, and running in a host. That said, you could of
course create UI XAML code dynamically on the web server using ASP.NET.
This is something which is rather done for Silverlight, not really for
WPF though.

Hope that helps,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
  Reply With Quote
Old 11-26-2007   #3 (permalink)
arunonw3
Guest
 
Posts: n/a

Re: xaml

Hi

Sorry if I am wrong...Since this is some what new to me may be I am
asking something stupid or wrong..

1.I was using VS 2005 extensions . Here on selecting a button the
corresponding mark up is not highlighted. And we have to type the
event handlers manually( I mean the basic format).

2.So WPF applications are windows applications using browser. Its like
we have to install the client part on the client which will contact to
server using some protocol( which will be that? web services?) and get
the result and display back to user.

3.So they are not getting rendered as HTML ultimately.

4.And can I use them as userinterface for web applications...as I am
doing with asp contros( button, datagrid etc.).

Once again sorry for being wrong...
  Reply With Quote
Old 11-26-2007   #4 (permalink)
Laurent Bugnion, MVP
Guest
 
Posts: n/a

Re: xaml

Hi,

No stupid questions. Don't be afraid to ask, but again, you should
rather use the official MSDN forum. This newsgroup is dying slowly but
surely, and is not monitored by Microsoft.
http://forums.microsoft.com/MSDN/Sho...D=119&SiteID=1

arunonw3@xxxxxx wrote:
Quote:

> Hi
>
> Sorry if I am wrong...Since this is some what new to me may be I am
> asking something stupid or wrong..
>
> 1.I was using VS 2005 extensions . Here on selecting a button the
> corresponding mark up is not highlighted. And we have to type the
> event handlers manually( I mean the basic format).
VS2005 was only used as a transition IDE before VS2008 was released. The
XAML editor is very basic (in fact, there is no XAML editor in VS2005,
it's the XML editor which is (mis)used to type XAML. Also, the state of
the WPF designer "Cider" in VS2005 is very primitive. I explicitly
recommend against using it, because it's also very slow. In VS2008, it
improved greatly, but I am not using it often so I am not sure exactly
about all you can do.
Quote:

> 2.So WPF applications are windows applications using browser. Its like
> we have to install the client part on the client which will contact to
> server using some protocol( which will be that? web services?) and get
> the result and display back to user.
Yes, for XBAP that's correct. To contact the web server, as I wrote
before, you can use ASMX web services, WCF or basically any web request.
The XBAP is just a .NET client like any other (well, with a few security
restrictions, for example you cannot use sockets).
Note that WCF is only available for XBAP in .NET 3.5.
Quote:

> 3.So they are not getting rendered as HTML ultimately.
No, XBAP is not even rendered by the web browser. The browser is only
used as a host for another EXE, named PresentationHost.exe. This is
where the real rendering is done.

If that's not satisfying for your scenario, you should look into
Silverlight.

Quote:

> 4.And can I use them as userinterface for web applications...as I am
> doing with asp contros( button, datagrid etc.).
I am not sure what you mean. The XBAP surface cannot interact with the
HTML surface. If you want to use WPF controls on a web page, you should
look into Silverlight, but the stage is very basic for the moment and
there is only one control available out-of-the-box (TextBlock). You can
create your own controls though, and rotate them, transform them, etc...
Quote:

> Once again sorry for being wrong...
You are not wrong, you're just asking. No worries.

Greetings.
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
  Reply With Quote
Old 11-26-2007   #5 (permalink)
arunonw3
Guest
 
Posts: n/a

Re: xaml

And Can we never have the same mark up for web applications and
windows applications. Infact I read an article on WPF which contained
" A common technology for windows and web browser interfaces" which
made me to think that I can use them for web applications as well.

So XBAPs are basically windows applications just using the browser for
display..They are stand alone applications that can use internet if
they want..
Not the web applications of the asp.net kind( where the server will
render html output to browser after processing..)
  Reply With Quote
Old 11-26-2007   #6 (permalink)
arunonw3
Guest
 
Posts: n/a

Re: xaml

Thanks for clearing me.
  Reply With Quote
 
Reply

Thread Tools
Display Modes









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