ArticleslgStudy

science

Extensible Application Markup Language

Extensible Application Markup Language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Extensible Application Markup Language rather than just read about it. In short: Extensible Application Markup Language (XAML ) is a declarative XML-based language developed by Microsoft for initializing structured values and objects. It is available under Microsoft's Open Specification Promise.

Key takeaways

  • Extensible Application Markup Language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Extensible Application Markup Language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Extensible Application Markup Language from memory before moving on to harder problems.

Reference excerpt

Extensible Application Markup Language (XAML ) is a declarative XML-based language developed by Microsoft for initializing structured values and objects. It is available under Microsoft's Open Specification Promise. XAML is used extensively in Windows Presentation Foundation (WPF), Silverlight, Workflow Foundation (WF), Windows UI Library (WinUI), Universal Windows Platform (UWP), and .NET Multi-platform App UI (.NET MAUI). In WPF and UWP, XAML is a user interface markup language to define UI elements, data binding, and events. In WF, however, XAML defines workflows. XAML elements map directly to Common Language Runtime (CLR) object instances, while XAML attributes map to CLR properties and events on those objects. 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 based on XML.

Technology XAML originally stood for Extensible Avalon Markup Language, Avalon being the code-name for Windows Presentation Foundation (WPF). Before the end of .NET Framework 3.0 development, however, Microsoft adopted XAML for Workflow Foundation (WF). In WPF, XAML describes visual user interfaces. WPF allows for the definition of both 2D and 3D objects, rotations, animations, and a variety of other effects and features. A XAML file can be compiled into a Binary Application Markup Language (BAML) file, 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. In WF contexts, XAML describes potentially long-running declarative logic, such as those created by process modeling tools and rules systems. 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 uses a specific way to define look and feel called Templates; differing from Cascading Style Sheet syntax, it is closer to XBL. To create XAML files, one could use Microsoft Expression Blend, Microsoft Visual Studio, the hostable WF visual designer, or XAMLPad.

Examples This Windows Presentation Foundation example shows the text "Hello, world!" in the top-level XAML container called Canvas.

The schema (the xmlns="http://schemas.microsoft.com/..." part) may have to be changed to work on some computers. Using a schema that Microsoft recommends, the example can also be

A crucial part of utilizing XAML to its full potential is making appropriate usage of binding, as well as creating custom user elements as required. Binding can be done as follows:

Differences between versions of XAML There are three main Microsoft implementations of XAML:

Windows Presentation Foundation (WPF), first available with .NET Framework 3.0 Silverlight 3 and 4, first available for Internet Explorer 6 and now deprecated Windows UI Library (formerly UWP XAML and WinRT XAML), first shipped with Windows 8 and Windows Server 2012, but now available as a part of the Windows App SDK These versions have some differences in the parsing behavior. Additionally, the Silverlight 4 XAML parser is not 100% backward-compatible with Silverlight 3 files. Silverlight 3 XAML files may be rejected or parsed differently by the Silverlight 4 parser. Besides Microsoft implementations, there is also OpenSilver (formerly known as CSHTML5), a contemporary web technology implementation.

XAML applications in web browsers Historically, XAML based applications could be run in some web browsers, such as Internet Explorer and Firefox. This could be achieved through XBAP files created from WPF applications, or via the Silverlight browser plugin. However, both these methods are now unsupported on all major browsers due to their reliance on the discontinued NPAPI browser plugin interface.

Lock-in concerns In 2007, European Committee for Interoperable Systems (ECIS) – a coalition of mostly American software companies – accused Microsoft of attempting to hijack HTML and replace it with XAML, thus creating a vendor lock-in. Jeremy Reimer, writing for Ars Technica described this comment as "the most egregious error" and added that XAML is unlikely to ever replace HTML.

See also List of user interface markup languages Comparison of user interface markup languages:

Interface Builder Layout manager

References

External links

XAML Language Reference XAML for UWP: Overview XAML for WPF: Overview System.Windows.Markup Namespace System.Xaml Namespace

Worked examples

Example 1 — a first encounter with Extensible Application Markup Language

Start with the simplest possible case. Write down what Extensible Application Markup Language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Extensible Application Markup Language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Extensible Application Markup Language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Extensible Application Markup Language

In research
Extensible Application Markup Language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Extensible Application Markup Language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Extensible Application Markup Language is common in secondary-school and first-year university syllabi. It links to neighbouring topics .NET terminology, Declarative markup languages, Declarative programming languages, so understanding it makes those chapters shorter.
In everyday life
Look for Extensible Application Markup Language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Extensible Application Markup Language” →

How to study Extensible Application Markup Language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Extensible Application Markup Language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Extensible Application Markup Language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Extensible Application Markup Language in simple terms?

Extensible Application Markup Language (XAML ) is a declarative XML-based language developed by Microsoft for initializing structured values and objects. It is available under Microsoft's Open Specification Promise.

Why does Extensible Application Markup Language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Extensible Application Markup Language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Extensible Application Markup Language.

Tags

  • .NET terminology
  • Declarative markup languages
  • Declarative programming languages
  • Markup languages
  • Microsoft Windows multimedia technology
  • Microsoft application programming interfaces
  • User interface markup languages
  • Vector graphics markup languages
  • XML-based standards

Keep exploring