ViewInjectionServiceExtensions.GetViewModel(IViewInjectionService, Object) Method

Static extension method that finds and returns a ViewModel with the specified key.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.1.dll

Declaration

public static object GetViewModel(
    this IViewInjectionService service,
    object key
)
<ExtensionAttribute>
Public Shared Function GetViewModel(
    service As IViewInjectionService,
    key As Object
) As Object

Parameters

Name Type Description
service IViewInjectionService

The type the static extension method operates with.

key Object

An object representing the identifier (key) of the View and its ViewModel.

Returns

Type Description
Object

An object representing the ViewModel.

See Also