博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

XAML (pronounced "Zamel") stands for eXtensible Application Markup Language. It is Microsoft's new declarative language for defining application user interfaces. XAML provides an easily extensible and localizable syntax for defining user interfaces separated from application logic, similar to the object-oriented technique for developing n-tier applications with a MVC (Model-View-Controller) architecture.

xaml (发音为" zamel " )的缩写,可扩展应用标记语言。这是微软的新宣示性的语言来界定应用的用户界面。 xaml提供一个容易扩展和定位语法定义用户界面分开,从应用逻辑,类似于面向对象技术开发N层应用程序与的MVC (模型视图-控制器)架构。

XAML can be used to develop applications on the following operating systems:

  • Windows XP SP2

  • Windows Server 2003 SP1

  • Windows Vista

XAML is extensible, as its name implies. XAML can easily be extended by developers creating custom controls, elements, and functionality. Because XAML is essentially the XML representation of objects defined by the WPF, XAML elements can easily be extended by developers using object-oriented programming techniques.
扩展的,正如其名称暗示。 xaml ,可以很容易延伸,由开发人员创建定制的管制措施,主要内容和功能。因为xaml基本上是XML表示的对象界定,由wpf , xaml分子可以很容易延伸,由开发者使用面向对象编程技术。

Working in Visual Studio, you'll be able to select a number of WinFX Applications, and the project files and application manifest will be generated automatically. You can choose to create a WinFX Windows executable, a WinFX WebBrowser application, a WinFX Service Library (which creates a WinFX library comprising the definition and implementation of a WinFX Service), or a WinFX Custom Control Library (for extending WinFX controls). However, you'll still have to edit both the XAML and associated C# or VB.NET codebehind files manually.

工作在Visual Studio ,您可以选择若干WinFX的应用,以及该项目的文件和应用舱单将自动生成。你可以选择创建的Windows WinFX的可执行文件,一个WinFX的单元应用, WinFX的服务,图书馆(其中创建一个WinFX的图书馆组成的定义和执行一个WinFX的服务) ,或WinFX的习俗控制图书馆(延长WinFX的控制) 。但是,你还是要编辑都xaml及相关的C #或vb.net codebehind档手动。

 

There are three basic rules to follow when declaring XAML elements:目前有三种基本规则时有所依循申报xaml内容:

  • XAML is case-sensitive. Element and attribute names must be properly cased。xaml是区分大小写的。元素和属性的名字必须妥善案例。

  • All attribute values, regardless of data type, must be enclosed in double quotes。所有属性值,而不论数据类型,必须存放在双引号。

  • The resulting XML must be well-formed。由此产生的XML必须有充分的形成。