Method LoadExistingFromString
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
xamlstringA string containing the XAML markup that defines the property values to apply.
existingObjectobjectThe object instance whose properties will be updated based on the XAML content. Must be compatible with the XAML definition.
resNamestringAn 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.