Method ParseSnippet
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
ParseSnippet(XamlObject, string, XamlParserSettings)
Method use to parse a piece of Xaml.
public static XamlObject ParseSnippet(XamlObject root, string xaml, XamlParserSettings settings)
Parameters
rootXamlObjectThe Root XamlObject of the current document.
xamlstringThe Xaml being parsed.
settingsXamlParserSettingsParser settings used by XamlParser.
Returns
- XamlObject
Returns the XamlObject of the parsed
xaml.
ParseSnippet(XamlObject, string, XamlParserSettings, XamlObject)
Method use to parse a piece of Xaml.
public static XamlObject ParseSnippet(XamlObject root, string xaml, XamlParserSettings settings, XamlObject parentObject)
Parameters
rootXamlObjectThe Root XamlObject of the current document.
xamlstringThe Xaml being parsed.
settingsXamlParserSettingsParser settings used by XamlParser.
parentObjectXamlObjectParent Object, where the Parsed snippet will be inserted (Needed for Example for Bindings).
Returns
- XamlObject
Returns the XamlObject of the parsed
xaml.