Skip to main content
A newer version of this page is available. .

DocumentManagerServiceExtensions.FindDocument(IDocumentManagerService, Object, Object) Method

Static extension method that finds and returns a document with the specified parameters.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Uwp.Controls, DevExpress.WindowsDesktop.Mvvm

Declaration

public static IDocument FindDocument(
    this IDocumentManagerService service,
    object parameter,
    object parentViewModel
)

Parameters

Name Type Description
service IDocumentManagerService

The type the static extension method operates with.

parameter Object

A parameter passed to the view model via the ISupportParameter.Parameter property.

parentViewModel Object

An object that is passed to the view model of the view via the ISupportParentViewModel.ParentViewModel property.

Returns

Type Description
IDocument

An object implementing the IDocument interface.

See Also