private void Media_Opened(object sender, RoutedEventArgs e) { Controller.button.Content = GetTotalRemaining(); if (!playing) { playing = true; AnimationIn.Play(); } }
private void Media_Opened(object sender, RoutedEventArgs e) { TimeSpan duration = Player.NaturalDuration.TimeSpan; if ((duration.Hours * 60) + duration.Minutes == 0) { Controller.button.Content = duration.Seconds; } else { Controller.button.Content = string.Format("{0:00}:{1:00}", (duration.Hours * 60) + duration.Minutes, duration.Seconds); } AnimationIn.Play(); }
public override void Show() { if (Source != string.Empty) { Controller.ToggleChilren(); if (Player.Source != new Uri(Source)) { Player.Source = new Uri(Source); } else { AnimationIn.Play(); } Player.Play(); Count_Elapsed(null, null); counter.Start(); playing = true; } }
public override void Show() { if (Sources.Count > 0) { Controller.ToggleChilren(); currentIndex = 0; if (Player.Source != new Uri(Sources[currentIndex].Item1)) { Player.Source = new Uri(Sources[currentIndex].Item1); } else { playing = true; AnimationIn.Play(); } Player.Play(); Count_Elapsed(null, null); counter.Start(); } }
public virtual void Show() { AnimationIn.Play(); Controller.Active = true; }