XamlFragment Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
XamlFragment(Object) |
Initializes a new instance of the XamlFragment class. |
XamlFragment(String) |
Initializes a new instance of the XamlFragment class. |
XamlFragment(Object)
Initializes a new instance of the XamlFragment class.
public XamlFragment (object xamlSerializable);
new Microsoft.VisualStudio.Extensibility.UI.XamlFragment : obj -> Microsoft.VisualStudio.Extensibility.UI.XamlFragment
Public Sub New (xamlSerializable As Object)
Parameters
- xamlSerializable
- Object
The object to be converted to XAML using Save(Object).
Remarks
This constructor must be called from the thread owning xamlSerializable
.
Applies to
XamlFragment(String)
Initializes a new instance of the XamlFragment class.
public XamlFragment (string xaml);
new Microsoft.VisualStudio.Extensibility.UI.XamlFragment : string -> Microsoft.VisualStudio.Extensibility.UI.XamlFragment
Public Sub New (xaml As String)
Parameters
- xaml
- String
The XAML document text.