Back to Devexpress

IModuleManager.Inject(String, String, Object) Method

corelibraries-devexpress-dot-mvvm-dot-moduleinjection-dot-imodulemanager-dot-inject-x28-system-dot-string-system-dot-string-system-dot-object-x29.md

latest2.4 KB
Original Source

IModuleManager.Inject(String, String, Object) Method

Namespace : DevExpress.Mvvm.ModuleInjection

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
void Inject(
    string regionName,
    string key,
    object parameter = null
)
vb
Sub Inject(
    regionName As String,
    key As String,
    parameter As Object = Nothing
)

Parameters

NameType
regionNameString
keyString

Optional Parameters

NameTypeDefault
parameterObjectnull

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Inject(String, String, Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-mvvm-framework-view-model-generator/CS/Framework 4.6.1/App.xaml.cs#L32

csharp
void InjectModules() {
    Manager.Inject(Regions.Navigation, AppModules.Login);
    Manager.Inject(Regions.Navigation, AppModules.Property);

See Also

IModuleManager Interface

IModuleManager Members

DevExpress.Mvvm.ModuleInjection Namespace