Skip to main content

IStrategyManager.RegisterStrategy<TTarget, TStrategy>() Method

Registers a custom strategy for the specified control’s type.

Namespace: DevExpress.Mvvm.UI.ModuleInjection

Assembly: DevExpress.Xpf.Core.v23.1.dll

NuGet Package: DevExpress.Wpf.Core


void RegisterStrategy<TTarget, TStrategy>()
    where TTarget : DependencyObject where TStrategy : IStrategy, new()

Type Parameters



To learn how to create a custom strategy, see the Implementing Custom Strategy section in the ViewInjectionService topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RegisterStrategy<TTarget, TStrategy>() method.


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.

See Also