Last active
August 14, 2018 21:29
-
-
Save JoeM-RP/e6bbe2c667659a547b75c9b83341caf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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