RuntimeXamlLoaderConfiguration Class
Definition
public class RuntimeXamlLoaderConfiguration
Constructors
| Name | Description |
|---|---|
| RuntimeXamlLoaderConfiguration | No summary available. |
RuntimeXamlLoaderConfiguration Constructor
public RuntimeXamlLoaderConfiguration()
Properties
| Name | Description |
|---|---|
| CreateSourceInfo | When enabled, the XAML compiler embeds SourceInfo metadata (file path, line, and column) into generated code. When not explicitly set, the 'AvaloniaXamlCreateSourceInfo' from the LocalAssembly will be used to determine the value. |
| DesignMode | Indicates whether the XAML is being loaded in design mode. Default is 'false'. |
| DiagnosticHandler | XAML diagnostics handler. |
| LocalAssembly | Default assembly for clr-namespace:. |
| UseCompiledBindingsByDefault | Defines is CompiledBinding should be used by default. Default is 'false'. |
CreateSourceInfo Property
When enabled, the XAML compiler embeds SourceInfo metadata (file path, line, and column) into generated code. When not explicitly set, the 'AvaloniaXamlCreateSourceInfo' from the LocalAssembly will be used to determine the value.
public bool CreateSourceInfo { get; set; }
DesignMode Property
Indicates whether the XAML is being loaded in design mode. Default is 'false'.
public bool DesignMode { get; set; }
DiagnosticHandler Property
XAML diagnostics handler.
public Avalonia.Markup.Xaml.RuntimeXamlLoaderConfiguration.XamlDiagnosticFunc DiagnosticHandler { get; set; }
Returns
Defines if any diagnostic severity should be overriden. Note, severity cannot be set lower than minimal for specific diagnostic.
LocalAssembly Property
Default assembly for clr-namespace:.
public System.Reflection.Assembly LocalAssembly { get; set; }
UseCompiledBindingsByDefault Property
Defines is CompiledBinding should be used by default. Default is 'false'.
public bool UseCompiledBindingsByDefault { get; set; }