ViewInjectionManagerExtensions.Inject(IViewInjectionManager, String, Object, Func<Object>, Type) Method
In This Article
Static extension method that injects a ViewModel (and its View) with the specified parameters.
Namespace: DevExpress.Mvvm
Assembly: DevExpress.Mvvm.v24.2.dll
NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation
#Declaration
public static void Inject(
this IViewInjectionManager service,
string regionName,
object key,
Func<object> viewModelFactory,
Type viewType
)
#Parameters
Name | Type | Description |
---|---|---|
service | IView |
The type the static extension method operates with. |
region |
String | A System. |
key | Object | An object specifying the identifier (key) of the View and its View |
view |
Func<Object> | A object encapsulating the method that returns the View |
view |
Type | A System. |
See Also