Skip to main content

RuntimeXamlLoaderConfiguration Class

Definition

Assembly:Avalonia.Markup.Xaml
Package:Avalonia
public class RuntimeXamlLoaderConfiguration

Inheritance: object -> RuntimeXamlLoaderConfiguration

Constructors

NameDescription
RuntimeXamlLoaderConfigurationNo summary available.

RuntimeXamlLoaderConfiguration Constructor

public RuntimeXamlLoaderConfiguration()

Properties

NameDescription
CreateSourceInfoWhen enabled, the XAML compiler embeds SourceInfo metadata (file path, line, and column) into generated code. Default is 'false'.
DesignModeIndicates whether the XAML is being loaded in design mode. Default is 'false'.
DiagnosticHandlerXAML diagnostics handler.
LocalAssemblyDefault assembly for clr-namespace:.
UseCompiledBindingsByDefaultDefines 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. Default is 'false'.

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; }