AvaloniaRuntimeXamlLoader.

Load(Stream, Assembly, object, Uri, bool) Method

Summary

Loads XAML from a stream.

Syntax

public static object Load(Stream stream, Assembly localAssembly, object rootInstance = null, Uri uri = null, bool designMode = false)

Parameters

Name Type Description
stream Stream The stream containing the XAML.
localAssembly Assembly Default assembly for clr-namespace:
rootInstance object The optional instance into which the XAML should be loaded.
uri Uri The URI of the XAML being loaded.
designMode bool Indicates whether the XAML is being loaded in design mode.

Return Value

Type Description
object The loaded object.