AsyncCommand Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An implementation of IAsyncCommand. Allows Commands to safely be used asynchronously with Task.
public class AsyncCommand : Xamarin.CommunityToolkit.ObjectModel.Internals.BaseAsyncCommand<object,object>, System.Windows.Input.ICommand, Xamarin.CommunityToolkit.ObjectModel.IAsyncCommand
- Inheritance
- Implements
-
System.
Windows. IAsyncCommandInput. ICommand
Async |
Initializes a new instance of AsyncCommand |
Async |
Initializes a new instance of AsyncCommand |
Allows |
Returns true if the Command allows simultaneous executions (Inherited from BaseCommand<TCanExecute>) |
Execution |
(Inherited from BaseCommand<TCanExecute>) |
Is |
Returns true when the Command is currently executing. Returns false when the Command is not executing (Inherited from BaseCommand<TCanExecute>) |
Can |
Determines whether the command can execute in its current state (Inherited from BaseCommand<TCanExecute>) |
Change |
Raises the |
Execute |
Executes the Command as a Task |
Raise |
Raises the |
Can |
Occurs when changes occur that affect whether or not the command should execute (Inherited from BaseCommand<TCanExecute>) |
ICommand. |
(Inherited from BaseAsyncCommand<TExecute,TCanExecute>) |
ICommand. |
(Inherited from BaseAsyncCommand<TExecute,TCanExecute>) |
מוצר | גירסאות |
---|---|
Xamarin Community Toolkit | Latest |