DocumentManagerServiceExtensions.CreateDocumentIfNotExistsAndShow(IDocumentManagerService, ref IDocument, String, Object, Object, Object) Method
Static extension method that creates and displays a new document if a document with the specified parameters does not exist. Otherwise, the document with the specified parameters will be shown.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public static void CreateDocumentIfNotExistsAndShow(
this IDocumentManagerService service,
ref IDocument documentStorage,
string documentType,
object parameter,
object parentViewModel,
object title
)
#Parameters
Name | Type | Description |
---|---|---|
service | IDocument |
The type the static extension method operates with. |
document |
IDocument | An object implementing the IDocument interface that represents the document storage. |
document |
String | A System. |
parameter | Object | A parameter passed to the view model via the ISupport |
parent |
Object | An object that is passed to the view model of the created view via the ISupport |
title | Object | A System. |