Table of Contents

Method LoadExistingFromString

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

LoadExistingFromString(string, object, string?)

Loads property values from a XAML string into an existing object instance.

public static void LoadExistingFromString(string xaml, object existingObject, string? resName = null)

Parameters

xaml string

A string containing the XAML markup that defines the property values to apply.

existingObject object

The object instance whose properties will be updated based on the XAML content. Must be compatible with the XAML definition.

resName string

An optional resource name used to report errors.

Remarks

This method updates the specified object with property values defined in the provided XAML string. The existing object must be of a type compatible with the XAML content.