//Events that get called by the users action #region UserperformedEvents public void Handle(SeekToPlayerPositionEvent message) { try { var timeSpan = TimeSpan.FromMilliseconds(message.Position); VideoPlayer.Position = timeSpan; } catch (Exception e) { TimePunchIntroPlayerUWPKernel.Get().EventAggregator.PublishMessage(new MessageBoxException(e.Message)); } }
public void Handle(SeekToPlayerPositionEvent playerPositionEvent) { var timeSpan = TimeSpan.FromMilliseconds(playerPositionEvent.Position); VideoPlayer.Position = timeSpan; }