Skip to main content
All docs
V22.2

How to: Manage Document Properties and Open Them Manually

The Scaffolding Wizard uses Document Services to open single-object and collection views. You can manage documents using the API described in the Document Management System section.

In addition to this, the DevExpress.Mvvm.ViewModel.DocumentManagerServiceExtensions class provides the following extension methods:

  • ShowNewEntityDocument<TEntity> - opens a document for editing a new entity.

    var service = this.GetService<IDocumentManagerService>();
    service.ShowNewEntityDocument<Entity>("EntityView", this, null);
    
  • ShowExistingEntityDocument<TEntity, TPrimaryKey> - opens a document for an existing entity by its key.

    var service = this.GetService<IDocumentManagerService>();
    service.ShowExistingEntityDocument<Entity, int>(this, 2);