XAML ( English e X tensible A pplication M arkup L anguage ) is an extensible markup language for applications (pronounced [ sneak ] or [ zaml ]) is an XML -based markup language for declarative application programming developed by Microsoft .
Xaml | |
---|---|
Expansion | |
MIME type | |
Format type | , , , and |
Expanded from |
The Vista application model includes an Application object. Its set of properties, methods and events allows you to combine web documents into a related application. The Application object controls the execution of the program and generates events for user code. Application documents are written in XAML. However, using XAML, the user interface is primarily described. The application logic is still controlled by procedural code (C #, VB, JavaScript, etc.). XAML can be used for both browser-based applications and desktop applications.
XAML includes four main categories of elements: panels, controls, elements associated with a document, and graphic shapes. 7 classes of panels are declared that set the principles for displaying elements embedded in them. To set the position of elements relative to the borders of the parent panel, attributes are used in the manner of properties in object-oriented languages. This syntax is not entirely consistent with CSS guidelines, but is familiar to desktop programmers.
XAML-declared applications can include many pages. The PageViewer control allows you to paginate content and provides navigation on them. The ContextMenu element helps in creating application navigation menus. The procedural language code can be placed directly in the XAML file or assigned during the assembly of the project.
Content
- 1 Overview
- 2 See also
- 3 notes
- 4 References
Overview
XAML is widely used in the .NET Framework 3.0, especially in the Windows Presentation Foundation (WPF), Windows Workflow Foundation (WWF), and Silverlight . In WPF, XAML is used as a user interface markup language for defining user interface elements, data binding, event support, and other properties. In WWF, using XAML, you can determine the sequence of actions (workflows).
XAML files can be created and edited using visual design tools, such as: Microsoft Expression Blend, Microsoft Visual Studio, WPF visual designer. They can also be created using a standard text editor, a code editor such as: XAMLPad, or a graphic editor such as Vectropy.
Everything created or implemented in XAML can be expressed using more traditional .NET languages, such as: C # or Visual Basic.NET. However, a key aspect of the technology is to reduce the complexity of the tools used to process XAML, since XAML is based on XML. As a result of this, there are many products that create XAML-based applications. Because XAML is XML-based, developers and designers have the ability to work on content simultaneously without the need for compilation.
See also
- Windows Presentation Foundation
- Microsoft Expression Blend
- XBAP (XAML Browser Application)
- Xforms
- Silverlight
- Xul
- Hta
- UIML
- Adobe flex
- Openlaszlo
- Ooxml
- List of user interface description languages
Notes
- ↑ https://msdn.microsoft.com/library/ms752059(v=vs.110).aspx - Microsoft .
- ↑ Register MIME Types and File Extensions // How to: Configure IIS 5.0 and IIS 6.0 to Deploy WPF Applications
Links
- XAML Language Overview (WPF)
- Likeness Jeremy. Windows 8 Apps with C # and XAML = Building Windows 8 Apps with C # and XAML. - 1st ed. - SPb. : Peter , 2013 .-- 368 p. - ISBN 978-5-496-00349-0 .