C# Class FormsAnimations.Comanding.AsyncCommand

Example inspired from: 1) http://enumeratethis.com/2012/06/14/asynchronous-commands-in-metro-wpf-silverlight/ 2) https://msdn.microsoft.com/en-us/magazine/dn630647.aspx
Inheritance: IAsyncCommand
显示文件 Open project: michaeled/FormsAnimations

Public Methods

Method Description
AsyncCommand ( Task>.Func execute ) : System
AsyncCommand ( Task>.Func execute, bool>.Func canExecute ) : System
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task

Protected Methods

Method Description
OnCanExecuteChanged ( ) : void

Method Details

AsyncCommand() public method

public AsyncCommand ( Task>.Func execute ) : System
execute Task>.Func
return System

AsyncCommand() public method

public AsyncCommand ( Task>.Func execute, bool>.Func canExecute ) : System
execute Task>.Func
canExecute bool>.Func
return System

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

ExecuteAsync() public method

public ExecuteAsync ( object parameter ) : System.Threading.Tasks.Task
parameter object
return System.Threading.Tasks.Task

OnCanExecuteChanged() protected method

protected OnCanExecuteChanged ( ) : void
return void