Skip to main content

IViewInjectionService.Remove(Object) Method

Removes the specified ViewModel (and its View) from the collection of the injected items.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.1.dll

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

Declaration

bool Remove(
    object viewModel
)

Parameters

Name Type Description
viewModel Object

An object representing the ViewModel.

Returns

Type Description
Boolean

true if the item is successfully removed; otherwise, false.

See Also