Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created October 27, 2021 19:02
Show Gist options
  • Save rdelrosario/1b69dbc4143c438273638de673061af6 to your computer and use it in GitHub Desktop.
Save rdelrosario/1b69dbc4143c438273638de673061af6 to your computer and use it in GitHub Desktop.
public class MainViewModel : INotifyPropertyChanged
{
...
public ICommand ForwardCommand { get; }
public ICommand RewindCommand { get; }
public MainViewModel(){
...
ForwardCommand = new Command<double>((seconds) => {
_videoPlayerStateMachine.Fire(forwardParamTrigger, seconds);
});
RewindCommand = new Command<double>((seconds) => {
_videoPlayerStateMachine.Fire(rewindParamTrigger, seconds);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment