Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Last active August 14, 2018 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/e6bbe2c667659a547b75c9b83341caf2 to your computer and use it in GitHub Desktop.
Save JoeM-RP/e6bbe2c667659a547b75c9b83341caf2 to your computer and use it in GitHub Desktop.
/*
* Define Commands
*/
public ReactiveCommand ShowActionSheetCommand { get; }
public ReactiveCommand ShowAlertCommand { get; }
public ReactiveCommand<CopyItem, bool> SelectItemCommand { get; }
/* Omitted */
ShowAlertCommand = ReactiveCommand.CreateFromTask(async (arg) => await ShowAlert());
ShowActionSheetCommand = ReactiveCommand.CreateFromTask(async (arg) => await ShowActionSheet());
SelectItemCommand = ReactiveCommand.CreateFromTask<CopyItem, bool>(async (arg) => await Navigate(arg));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment