Skip to main content

Crate ferroui_markup_xaml

Crate ferroui_markup_xaml 

Source
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_xaml for the default group) and the module compiled_markup with the embedded assets (ASSETS), the loader table of the crate (try_load) and register(), which the register_types() of the crate calls.

Structs§

EagerParentStackEnumerator
Walks the parents of an eager parent stack provider, the immediate parent first, without building the list of all parents.
FerroXamlLoader
Loads XAML for a FerroUI application.
RuntimeXamlDiagnostic
A diagnostic of the runtime loader.
RuntimeXamlLoaderConfiguration
How the runtime XAML loader loads a document.
RuntimeXamlLoaderDocument
A markup document for the runtime XAML loader.
XamlLoadException
The error raised when a markup document cannot be loaded, or when a member of the markup runtime fails on its input.

Enums§

RuntimeXamlDiagnosticSeverity
The severity of a diagnostic of the runtime loader.
XamlResourceNode
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§

FromXamlObject
A type an untyped object can be tested for and viewed as: the T of the managed obj as T.
IProvideValueTarget
Tells a markup extension what its value is provided for.
IRootObjectProvider
Gives access to the root object of the document being loaded.
IRuntimeXamlLoader
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.
IUriContext
Gives access to the base URI of the document being loaded.
IXamlTypeResolver
Resolves type names qualified with a namespace prefix of the document (local:MyControl).
MarkupExtension
The base of markup extensions: objects that provide the value of a property in markup ({StaticResource Key}).
ServiceProviderExtensions
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§

CompiledXamlLoader
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.
XamlDiagnosticFunc
Called with each diagnostic the runtime loader produces; returns the severity to treat it with.