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

IViewInjectionService.Remove(Object) Method

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

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll

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

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