Expand description
ferroui-markup-xaml
The XAML runtime library: what compiled and interpreted markup documents call into. Markup extensions, templates, includes, type converters, the runtime helpers of the XAML compiler (service providers, deferred content, parent stacks) and the loader entry point.
Modules§
- converters
- The type converters of the markup runtime: conversions from the text of a markup document that need its context (base URI, parent stack, type resolver), and the color to brush conversion of resources.
- data
- Binding expressions of the markup runtime.
- diagnostics
- Diagnostics support of the markup runtime.
- markup_
extensions - The markup extensions of the framework.
- parsers
- Parsers shared by the XAML compiler extensions and the markup runtime.
- styling
- Includes: styles and resources loaded from other markup documents.
- templates
- The templates of markup: objects whose content is built on demand.
- xaml_il
- The runtime side of the XAML compiler.
- xamlx_
runtime - Port of the XAML compiler’s runtime contracts
(
XamlX.Runtime/Interfaces.cs).
Macros§
- include_
compiled_ xaml - Includes the compiled markup the build script of the crate generated
(
ferroui_build::Build::run, docs/porting/xaml.md 9.6.2), at the root of the crate: one public module per group of documents (compiled_xamlfor the default group) and the modulecompiled_markupwith the embedded assets (ASSETS), the loader table of the crate (try_load) andregister(), which theregister_types()of the crate calls.
Structs§
- Eager
Parent Stack Enumerator - Walks the parents of an eager parent stack provider, the immediate parent first, without building the list of all parents.
- Ferro
Xaml Loader - Loads XAML for a FerroUI application.
- Runtime
Xaml Diagnostic - A diagnostic of the runtime loader.
- Runtime
Xaml Loader Configuration - How the runtime XAML loader loads a document.
- Runtime
Xaml Loader Document - A markup document for the runtime XAML loader.
- Xaml
Load Exception - The error raised when a markup document cannot be loaded, or when a member of the markup runtime fails on its input.
Enums§
- Runtime
Xaml Diagnostic Severity - The severity of a diagnostic of the runtime loader.
- Xaml
Resource Node - A resource node found among untyped objects.
Statics§
- ASSEMBLY
- What this crate states about itself for markup: its assembly name and the namespaces the XML namespace of the framework maps to.
Traits§
- From
Xaml Object - A type an untyped object can be tested for and viewed as: the
Tof the managedobj as T. - IProvide
Value Target - Tells a markup extension what its value is provided for.
- IRoot
Object Provider - Gives access to the root object of the document being loaded.
- IRuntime
Xaml Loader - Loads documents from their text at run time. Registered as a service
(
FerroLocator) by the runtime XAML loader crate; without it only compiled documents can be loaded. - IUri
Context - Gives access to the base URI of the document being loaded.
- IXaml
Type Resolver - Resolves type names qualified with a namespace prefix of the document
(
local:MyControl). - Markup
Extension - The base of markup extensions: objects that provide the value of a
property in markup (
{StaticResource Key}). - Service
Provider Extensions - The lookups built on the services of a markup service provider.
Functions§
- register_
types - Registers the namespaces and the types of this crate (and of the crates
it is built on) with the tables of known types
(
TypeInfo::find,MarkupType::find) and its assembly. Cheap and idempotent; nothing is initialised until a type is used or looked into.
Type Aliases§
- Compiled
Xaml Loader - The loader of the compiled documents of one assembly (crate): returns
the object built from the document with the absolute URI
uri,Ok(None)if the assembly has no such document, and the load error when building the document failed. - Xaml
Diagnostic Func - Called with each diagnostic the runtime loader produces; returns the severity to treat it with.