Skip to main content

DocumentManagerServiceExtensions.GetDocumentsByParentViewModel(IDocumentManagerService, Object) Method

Static extension method that returns a collection of documents whose Parent View Model (ISupportParentViewModel) is equal to the specified View Model.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

public static IEnumerable<IDocument> GetDocumentsByParentViewModel(
    this IDocumentManagerService service,
    object parentViewModel
)

Parameters

Name Type Description
service IDocumentManagerService

A System.Type value specifying the type of the service.

parentViewModel Object

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

Returns

Type Description
IEnumerable<IDocument>

A collection of objects implementing the IDocument interface.

See Also