namespace System.Activities.Presentation.Documents {
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Media;
using System.Activities.Presentation;
using System.Activities.Presentation.Model;
using System.Activities.Presentation.Services;
///
/// A ViewManager is a class that manages and provides the view
/// for the designer. The view manager is used by MarkupDocumentManager
/// to provide the view for the designer.
///
abstract class ViewManager : IDisposable {
///
/// Returns the view for the designer. This will return null until
/// Initialize has been called.
///
public abstract Visual View { get; }
///
/// Initializes this view manager with the given model tree.
///
/// The editing context for the designer.
/// If model is null.
public abstract void Initialize(EditingContext context);
///
/// Disposes this view manager.
///
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
///
/// Disposes this view manager.
/// True if this object is being disposed, or false if it is finalizing.
///
protected virtual void Dispose(bool disposing) {
}
}
}