user342552
user342552

Reputation:

XAML usage question

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

Thanks.

Upvotes: 1

Views: 149

Answers (5)

Jeremy Likness
Jeremy Likness

Reputation: 7521

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.

Upvotes: 0

Turing Complete
Turing Complete

Reputation: 930

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.

Upvotes: 0

Matěj Zábský
Matěj Zábský

Reputation: 17272

It is also used in Office 2007+ *x formats

Upvotes: 0

Jesse Collins
Jesse Collins

Reputation: 186

XAML is also the basis for XPS.

Upvotes: 0

Justin Niessner
Justin Niessner

Reputation: 245389

No, it is also used in Windows Workflow Foundation:

Using Workflow Markup

Upvotes: 1

Related Questions