ViewInjectionServiceExtensions.GetViewModel(IViewInjectionService, Object) Method
In This Article
Static extension method that finds and returns a ViewModel with the specified key.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public static object GetViewModel(
this IViewInjectionService service,
object key
)
#Parameters
Name | Type | Description |
---|---|---|
service | IView |
The type the static extension method operates with. |
key | Object | An object representing the identifier (key) of the View and its View |
#Returns
Type | Description |
---|---|
Object | An object representing the View |
See Also