0 XAML

Extensible Application Markup Language (XAML, pronounced zammel ([zæ:mɛl])) by Microsoft is a declarative XML-based language used to initialize structured values and objects. The acronym originally stood for Extensible Avalon Markup Language, where Avalon was the code-name for Windows Presentation Foundation (WPF).

XAML is used extensively in the .NET Framework 3.0 technologies, particularly in Windows Presentation Foundation (WPF), where it is used as a user interface markup language to define UI elements, data binding, eventing, and other features, and in Windows Workflow Foundation (WF), in which workflows themselves can be defined using XAML. The serialization format for workflows was previously called XOML, to differentiate it from UI markup use of XAML, but now they are no longer distinguished. However, the file extension for files containing the workflow markup is still "XOML".

XAML elements can map directly to Common Language Runtime (CLR) object instances whereas attributes can map to CLR properties and events on those objects. In typical usage, XAML files will be produced by visual design and developer tools, such as Microsoft Expression Blend, Microsoft Visual Studio, XAMLPad or the hostable Windows Workflow Foundation (WF) visual designer.

XAML files are sometimes compiled into a .baml binary files, which may be inserted as a resource into a .NET Framework assembly. At run-time, the framework engine extracts the .baml file from assembly resources, parses it, and creates a corresponding WPF visual tree or workflow.

When used in WPF, XAML is used to describe graphically rich visual user interfaces, such as those created by Adobe Flash. XUL, GladeXML and UIML are other examples of XML-based user interface languages. WPF allows for the definition of both 2D and 3D objects, rotations, animations, and a variety of other effects and features.

When used in Windows Workflow Foundation (WF) contexts, XAML is used to describe potentially long-running declarative logic, such as those created by process modeling tools and rules systems. RuleML and BPEL are other examples of XML-based declarative logic languages.

Anything that is created or implemented in XAML can be expressed using a more traditional .NET language, such as C# or Visual Basic.NET. However, a key aspect of the technology is the reduced complexity needed for tools to process XAML, because it is simply XML. As a result, a variety of products are emerging, particularly in the WPF space, which create XAML-based applications. As XAML is simply based on XML, developers and designers are able to share and edit content freely amongst themselves without requiring compilation.

0 comments:

 

Dot Net - Pros & Cons Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates