Table of Contents

Class UixmlLoader

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Creates an object graph from a source UIXML stream or resource.

public class UixmlLoader
Inheritance
UixmlLoader

Fields

DefaultFlags

Gets or sets default flags which customize load uixml behavior.

LoadFromResName

Custom method for loading Uixml from resource. Overrides default behavior.

LoadFromStream

Custom method for loading Uixml from stream. Overrides default behavior.

ReportLoadException

Custom method for showing errors occured during load process. Overrides default behavior.

Properties

DisableComponentInitialization

This flag supports internal infrastructure and is not supposed to be used from the user code.

IsDesignMode

Gets or sets whether uixml is loaded in design mode.

ShowExceptionDialog

Gets or sets whether to show exception dialog when uixml is loaded with errors.

Methods

DefaultReportLoadException(Exception, string?, Flags)

Reports load error using the specified error information and flags.

FindType(string)

Finds type by the name. Searches through all loaded assemblies.

GetErrorFileAndPos(Exception, string?)

Builds message with filename and error position.

Initialize()

Initializes uixml loader. Optional. Can be called during application startup for better user experience if first uixml is loaded later than main form is shown.

Load(Stream, Assembly)

Returns an object graph created from a source XAML.

LoadExisting(Stream, object)

Populates an existing root object with the object property values created from a source XAML.

LoadExisting(string, object)

Populates an existing root object with the object property values created from the specified resource with XAML.

LoadExistingEx(Stream, object, Flags, string?)

Populates an existing root object with the object property values created from a source XAML.

PrepareUixmlStreamForPreview(Stream)

Prepares uixml stream for the preview. This method demoves event assignments from the uixml and makes other preview related changes.