AvaloniaRuntimeXamlLoader Class
Definition
public class AvaloniaRuntimeXamlLoader
Methods
| Name | Description |
|---|---|
| Load (3 overloads) | Loads XAML from a stream. |
| LoadGroup | No summary available. |
| Parse | Parse XAML from a string. |
Load overloads
Load Method
Loads XAML from a stream.
public object Load(Avalonia.Markup.Xaml.RuntimeXamlLoaderDocument document, Avalonia.Markup.Xaml.RuntimeXamlLoaderConfiguration configuration)
Parameters
document Avalonia.Markup.Xaml.RuntimeXamlLoaderDocument
The stream containing the XAML.
configuration Avalonia.Markup.Xaml.RuntimeXamlLoaderConfiguration
Xaml loader configuration.
Returns
object
The loaded object.
Load Method
Loads XAML from a stream.
public object Load(System.IO.Stream stream, System.Reflection.Assembly localAssembly, object rootInstance, Uri uri, bool designMode)
Parameters
stream System.IO.Stream
The stream containing the XAML.
localAssembly System.Reflection.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.
Returns
object
The loaded object.
Load Method
Loads XAML from a string.
public object Load(string xaml, System.Reflection.Assembly localAssembly, object rootInstance, Uri uri, bool designMode)
Parameters
xaml string
The string containing the XAML.
localAssembly System.Reflection.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.
Returns
object
The loaded object.
LoadGroup Method
public System.Collections.Generic.IReadOnlyList<object> LoadGroup(System.Collections.Generic.IReadOnlyCollection<Avalonia.Markup.Xaml.RuntimeXamlLoaderDocument> documents, Avalonia.Markup.Xaml.RuntimeXamlLoaderConfiguration configuration)
Parameters
documents System.Collections.Generic.IReadOnlyCollection<Avalonia.Markup.Xaml.RuntimeXamlLoaderDocument>
configuration Avalonia.Markup.Xaml.RuntimeXamlLoaderConfiguration
Returns
System.Collections.Generic.IReadOnlyList<object>
Parse Method
Parse XAML from a string.
public T Parse<T>(string xaml, System.Reflection.Assembly localAssembly)
Parameters
xaml string
The string containing the XAML.
localAssembly System.Reflection.Assembly
Default assembly for clr-namespace:.
Returns
object
The loaded object.