Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Sun, 25 Nov 2007 10:31:52 -0800 (PST),    group: microsoft.public.windows.developer.winfx.avalon        back       


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
date: Sun, 25 Nov 2007 10:31:52 -0800 (PST)   author:   unknown

Re: xaml   
Hi,

You should ask WPF questions on the MSDN forum at
http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=119&SiteID=1

Nonetheless:

arunonw3@gmail.com wrote:
> 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.

> 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.

> 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
date: Sun, 25 Nov 2007 20:19:43 +0100   author:   Laurent Bugnion, MVP

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...
date: Sun, 25 Nov 2007 23:18:09 -0800 (PST)   author:   unknown

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/ShowForum.aspx?ForumID=119&SiteID=1

arunonw3@gmail.com wrote:
> 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.

> 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.

> 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.


> 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...

> 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
date: Mon, 26 Nov 2007 08:28:55 +0100   author:   Laurent Bugnion, MVP

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..)
date: Sun, 25 Nov 2007 23:36:22 -0800 (PST)   author:   unknown

Re: xaml   
Thanks for clearing me.
date: Mon, 26 Nov 2007 03:32:19 -0800 (PST)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us