DocumentManagerServiceExtensions.CreateDocument(IDocumentManagerService, String, Object) Method
In This Article
Static extension method that creates and returns a IDocument descendant with the specified parameters.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public static IDocument CreateDocument(
this IDocumentManagerService service,
string documentType,
object viewModel
)
#Parameters
Name | Type | Description |
---|---|---|
service | IDocument |
The type the static extension method operates with. |
document |
String | A System. |
view |
Object | An object specifying the document’s View Models. |
#Returns
Type | Description |
---|---|
IDocument | An object implementing the IDocument interface. |
#Remarks
This method uses the ViewLocator to create a child View and passes the specified View Model to the created child View. (ViewTemplate and ViewTemplateSelector, tightly-coupled View Models).
See Also