简体   繁体   中英

XAML usage question

As far as I know, XAML is only used in and , isn't it? ,不是吗?

Thanks.

No, it is also used in Windows Workflow Foundation:

Using Workflow Markup

XAML也是XPS的基础。

它还用于Office 2007+ * x格式

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM