ViewInjectionManagerExtensions.Inject(IViewInjectionManager, String, Object, Func<Object>) Method

Injects a ViewModel (and its View) with the specified parameters.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.1.dll

Declaration

public static void Inject(
    this IViewInjectionManager service,
    string regionName,
    object key,
    Func<object> viewModelFactory
)
<ExtensionAttribute>
Public Shared Sub Inject(
    service As IViewInjectionManager,
    regionName As String,
    key As Object,
    viewModelFactory As Func(Of Object)
)

Parameters

Name Type Description
service IViewInjectionManager

The type the static extension method operates with.

regionName String

A System.String value specifying the region name.

key Object

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

viewModelFactory Func<Object>

A object encapsulating the method that returns the ViewModel.

See Also