You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`IDynamicCommandStrategy` can be decorated in order to add new logic to it.
95
95
96
-
Here is a list of some decorators provided.
96
+
Here is a list of some delegating strategies provided.
97
97
98
98
-[BackgroundCommandStrategy](Implementations/Strategies/BackgroundCommandStrategy.cs) : Executes the command on a background thread.
99
99
-[CanExecuteCommandStrategy](Implementations/Strategies/CanExecuteCommandStrategy.cs) : Attaches the `CanExecute` to the value of a `IDynamicProperty`.
@@ -116,35 +116,35 @@ var myCommand = new DynamicCommand("MyCommand", myStrategyWithLogs);
116
116
voidExecuteCommand() { }
117
117
```
118
118
119
-
You can create your own decorators by inheriting from `DecoratorCommandStrategy`.
119
+
You can create your own strategies by inheriting from `DelegatingCommandStrategy`.
Copy file name to clipboardexpand all lines: src/DynamicMvvm.Abstractions/Command/IDynamicCommandBuilder.Extensions.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ public static class DynamicCommandBuilderExtensions
17
17
/// <param name="strategy">The strategy to add.</param>
18
18
/// <param name="wrapExisting">When true, the <paramref name="strategy"/> is added at the start of the list, so that it wraps all existing strategies already present in the list.</param>
Copy file name to clipboardexpand all lines: src/DynamicMvvm/Command/Strategies/RaiseCanExecuteOnDispatcherCommandStrategy.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ namespace Chinook.DynamicMvvm
9
9
/// <summary>
10
10
/// This <see cref="IDynamicCommandStrategy"/> ensures that the <see cref="CanExecuteChanged"/> event is raised using <see cref="IDispatcher.ExecuteOnDispatcher(CancellationToken, Action)"/>.
0 commit comments