Dela via


MarkupDocumentManager Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Handles reading and writing markup (XAML) documents.

Namespace:  Microsoft.Windows.Design.Documents
Assembly:  Microsoft.Windows.Design.Markup (in Microsoft.Windows.Design.Markup.dll)

Syntax

'Declaration
Public Class MarkupDocumentManager _
    Implements IDisposable
'Usage
Dim instance As MarkupDocumentManager
public class MarkupDocumentManager : IDisposable
public ref class MarkupDocumentManager : IDisposable
public class MarkupDocumentManager implements IDisposable

Remarks

The MarkupDocumentManager maintains three document tree managers internally. A MarkupDocumentTreeManager handles the reading and writing of markup source. The document tree produced from this tree manager is passed to a ModelDocumentTreeManager to produce the editing model tree. Finally, the view document tree produced by the ModelDocumentTreeManager is passed to a ViewManager that produces the view.

In addition to these three primary document tree managers, MarkupDocumentManager maintains a fourth in-memory tree manager and uses it to provide undo/redo support. Supporting undo in your application can be accomplished by handling the UndoUnitCreated event.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Documents.MarkupDocumentManager

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MarkupDocumentManager Members

Microsoft.Windows.Design.Documents Namespace

Other Resources

WPF Designer Extensibility