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
root
XamlObjectThe Root XamlObject of the current document.
xaml
stringThe Xaml being parsed.
settings
XamlParserSettingsParser 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
root
XamlObjectThe Root XamlObject of the current document.
xaml
stringThe Xaml being parsed.
settings
XamlParserSettingsParser settings used by XamlParser.
parentObject
XamlObjectParent Object, where the Parsed snippet will be inserted (Needed for Example for Bindings).
Returns
- XamlObject
Returns the XamlObject of the parsed
xaml
.