Load(Stream, Assembly, Object, Uri, Boolean) Method
Loads XAML from a stream.
Definition
Namespace: Avalonia.Markup.Xaml
Assembly: Avalonia.Markup.Xaml.Loader (in Avalonia.Markup.Xaml.Loader.dll)
- C#
- VB
- F#
public static Object Load(
Stream stream,
Assembly? localAssembly = null,
Object? rootInstance = null,
Uri? uri = null,
bool designMode = false
)
Public Shared Function Load (
stream As Stream,
Optional localAssembly As Assembly = Nothing,
Optional rootInstance As Object = Nothing,
Optional uri As Uri = Nothing,
Optional designMode As Boolean = false
) As Object
static member Load :
stream : Stream *
?localAssembly : Assembly *
?rootInstance : Object *
?uri : Uri *
?designMode : bool
(* Defaults:
let _localAssembly = defaultArg localAssembly null
let _rootInstance = defaultArg rootInstance null
let _uri = defaultArg uri null
let _designMode = defaultArg designMode false
*)
-> Object
Parameters
- Stream
- The stream containing the XAML.
- Assembly (Optional)
- Default assembly for clr-namespace:
- Object (Optional)
- The optional instance into which the XAML should be loaded.
- Uri (Optional)
- The URI of the XAML being loaded.
- Boolean (Optional)
- Indicates whether the XAML is being loaded in design mode.
Return Value
Object
The loaded object.
See Also
Reference
AvaloniaRuntimeXamlLoader Class
Load Overload
Avalonia.Markup.Xaml Namespace