private void DoPlayTextPart(TextPart tp) { PlayerStoryboard.Stop(mediaElement); MarkerStoryboard.Stop(PositionBar); PlayPartLength = tp.TextWidth; // 1px = 1 mill var scaledStartMills = tp.StartMills; var seekTime = TimeSpan.FromMilliseconds(scaledStartMills); MarkerRectangle.Margin = new Thickness(scaledStartMills * Scale, 0, 0, 0); MarkerRectangle.Width = PlayPartLength * Scale; SeekToMousePointInTime(seekTime); TrackStartCommand.Execute(null); }
private void DoTrackStop() { PlayerStoryboard.Stop(mediaElement); }