Skip to content

Is it possible to load XAML runtime in Avalonia 11.x #17062

Answered by thevortexcloud
IftikharK asked this question in Q&A
Discussion options

You must be logged in to vote

There is a runtime XAML loader if that's what you want? It will convert what ever XAML you pass into it into a .NET object.

/// <summary>
/// Loads XAML from a string.
/// </summary>
/// <param name="xaml">The string containing the XAML.</param>
/// <param name="localAssembly">Default assembly for clr-namespace:.</param>
/// <param name="rootInstance">The optional instance into which the XAML should be loaded.</param>
/// <param name="uri">The URI of the XAML being loaded.</param>
/// <param name="designMode">Indicates whether the XAML is be…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@IftikharK
Comment options

Answer selected by IftikharK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants