File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,18 @@ public sealed class ICommandAttribute : Attribute
83
83
84
84
/// <summary>
85
85
/// Gets or sets a value indicating whether a cancel command should also be generated for an asynchronous command.
86
+ /// <para>
87
+ /// When set to <see langword="true"/>, this additional code will be generated:
88
+ /// <code>
89
+ /// partial class MyViewModel
90
+ /// {
91
+ /// private ICommand? loginUserCancelCommand;
92
+ ///
93
+ /// public ICommand LoginUserCancelCommand => loginUserCancelCommand ??= LoginUserCommand.CreateCancelCommand();
94
+ /// }
95
+ /// </code>
96
+ /// Where <c>LoginUserCommand</c> is an <see cref="IAsyncRelayCommand"/> defined in the class (or generated by this attribute as well).
97
+ /// </para>
86
98
/// </summary>
87
99
/// <remarks>Using this property is not valid if the target command doesn't map to a cancellable asynchronous command.</remarks>
88
100
public bool IncludeCancelCommand { get ; init ; }
You can’t perform that action at this time.
0 commit comments