XAML 有多独特? [英] How unique is XAML?

查看:14
本文介绍了XAML 有多独特?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在与一位同事谈论 XAML,以及它如何既是一种表示语言又是对象描述语言,因此在 IT 技术中非常独特和新颖.

Was talking to a colleague about XAML and how it is both a presentation and object description language and therefore quite unique and novel among IT technology.

XAML 的独特性和新颖性是真的吗?

Is this true that XAML is unique and novel?

XAML 在 Java 世界或其他地方是否有任何对应物或前身?我相信有人告诉我 Java Server Faces 类似于 WPF,那么 XAML 的等价物是什么?

Does XAML have any counterparts or predecessors in the Java world or elsewhere? I believe someone told me that Java Server Faces was similar to WPF, so what is the equivalent of XAML there?

我知道 Flex 中的 MXML 是相似的,但据我所知存在一些主要的结构差异,据我所知,MXML 并没有真正描述对象,而更像是一种纯粹的呈现 XML.

I know MXML in Flex is similar but as far as I can remember there are some major structural differences, from what I remember MXML doesn't really describe objects but is more of a pure presentation XML.

推荐答案

这是一个通用技术的案例,它具有如此压倒性的通用特定用法,并与特定用法同义.例如,对 Javascript 的讨论通常假设浏览器上下文和 HTML DOM 的操作,而无需任何人明确说明.

This is a case of a general technology having such an overwhelming common specific usage that becomes synonmous with the specific usage. For example, discussions of Javascript often assume the browser context and the manipulation of a HTML DOM without anyone having to expressly say so.

严格来说,除了是 XML 之外,XAML 不像 XUL 或 SVG.XUL、SVG 具有用于声明用户界面或图形元素的已定义语法,而原始 XAML 则没有.

Strictly speaking XAML is not like XUL or SVG apart from being XML. XUL, SVG have a defined syntax for declaring User interface or graphical elements, raw XAML does not.

例如,XAML 还可用于描述工作流基础中的工作流.

XAML can, for example, also be used to describe Workflows in Workflow foundation.

XAML 实际上是一种读取 XML 以描述这些类型的类型和属性的方法.例如,可以使用属性或元素来描述类型的属性,只要其名称可以正确解释即可.XAML 还包括对基本 XML 语法的扩展,其中属性中的 { } 可以充当复杂元素的简写.

XAML is actually an approach to reading XML in order to describe types and properties of those types. For example, a property of a type may be described either using an attribute or an Element as long as its name can be interpreted correctly. XAML also includes an extension to the basic XML syntax where { } in an attribute can act as a short hand for a complex element.

我以前没有遇到过这种事情.所有其他基于 XML 的技术都有特定的用途,XAML 是我见过的第一个 XML 用法,它没有任何特定的命名法,只是将 XML 映射到类型的一种方法.

I've not come across this sort of thing before. All other XML based technologies come with a specific purpose, XAML is the first usage of XML I've seen that is deviod of any specific nomenclature but just a means of mapping XML to types.

这篇关于XAML 有多独特?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆