使用与 WPF 或 silverlight 无关的 XAML

发布于 2024-09-25 02:43:23 字数 171 浏览 1 评论 0原文

我试图了解 XAML 的使用,而不是将其用作创建 WPF 和 silverlight 应用程序的标记。我还能在哪里使用 XAML。请提供 XAML 的所有可能用途。

XAML 可以用作提供者映射和相关内容的常规 XML 吗?

请提供一些链接,我可以在其中了解 XAML。

谢谢。

I am trying to understand the use of XAML instead using it as markup in creating WPF and silverlight applications. Where else could i use XAML. Please provider all the possible uses of XAML.

Could XAML be used as regular XML to provider mapping and related stuff?

Please provider some links where i could learn about XAML.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

╰沐子 2024-10-02 02:43:23

这篇文章可能会有所帮助:http://www.davidpoll.com/2010/07/25/to-xaml-with-love-an-experiment-with-xaml-serialization-in-silverlight/。本文介绍了如何将 XAML 用作序列化格式,不仅用于用户界面,还用于其他 CLR 对象。

This writeup can be helpful: http://www.davidpoll.com/2010/07/25/to-xaml-with-love-an-experiment-with-xaml-serialization-in-silverlight/. This article describes a way on how XAML can be used as a serialization format not just for a user-interface, but also for other CLR objects.

謸气贵蔟 2024-10-02 02:43:23

XAML 用作 Windows Workflow Foundation (WF) 中工作流的序列化机制,请参阅示例 http ://www.codeproject.com/KB/WF/XAML_WF.aspx

XAML is used as the serialization mechanism for workflows in Windows Workflow Foundation (WF), see for example http://www.codeproject.com/KB/WF/XAML_WF.aspx

行至春深 2024-10-02 02:43:23

XAML 是一种相当高效的 XML 序列化格式,带有命名空间和标记扩展的挂钩。您不必纯粹将其用于 WPF 应用程序;只要您要序列化的类型具有无参数构造函数,您就可以在 XAML 中表示几乎任何 .NET 引用类型。

如果您不使用标记扩展,那么与普通 XML 序列化相比,这并不是真正的巨大飞跃。但它提供的增量改进足够有用,而且它是 VS、WPF 和 Blend 支持的格式这一事实当然不会造成伤害。

XAML's a fairly efficient XML serialization format with hooks for namespaces and markup extensions. You don't have to use it purely for WPF applications; as long as the types you're serializing have parameterless constructors you can represent just about any .NET reference type in XAML.

If you're not using markup extensions, it's not really a huge leap past ordinary XML serialization. But the incremental improvements that it offers are useful enough, and the fact that it's a format supported by VS and WPF and Blend certainly doesn't hurt.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文