views:

59

answers:

5

Hi, As far as I know, XAML is only used in WPF and Silverlight, isn't it?

Thanks.

+1  A: 

No, it is also used in Windows Workflow Foundation:

Using Workflow Markup

Justin Niessner
A: 

XAML is also the basis for XPS.

Jesse Collins
A: 

It is also used in Office 2007+ *x formats

CommanderZ
A: 

You can use it for whatever you like (beginning with .NET 4.0 if I'm not mistaken, didn't try it in 3.5).

However, if you do so, please also use the other good things .NET has to offer, such as "INotifyPropertyChanged" and dependency properties. Otherwise whatever you create will be a less - than - optimal solution.

Turing Complete
A: 

There is a huge mistake I often see people make when they say, "XAML is UI markup." It's not. You can have XAML with no UI whatsoever. XAML is, in essence, an XML object graph. It is markup for creating classes. It provides the parser with instructions on how to generate instances of types and set properties on those types. This is extremely useful for creating UI in WPF and Silverlight but can also extend to sample data, view models, and other constructs. As mentioned here, it is also used in Workflow and other areas.

Jeremy Likness
Thanks. I know exactly what XAML is. But I didn't know it was used in other technologies like WorkFlow.
Nazaf