createSync3<TParam, TResult> method
Creates a RxCommand for a synchronous handler function with parameter that returns a value
func
: handler function
canExecute
: observable that can bve used to enable/diable the command based on some other state change
if omitted the command can be executed always except it's already executing
Implementation
static RxCommand<TParam, TResult> createSync3<TParam, TResult>(Func1<TParam,TResult> func,[Observable<bool> canExecute])
{
return new RxCommandSync<TParam,TResult>((x) => func(x),canExecute);
}