private void Mp3Player_TotalTimeChanged(object sender, TimeSpanEventArgs e) { ProgressSlider.IsEnabled = true; ProgressSlider.Maximum = e.TimeSpan.Ticks; }
protected virtual void OnTotalTimeChanged(TimeSpanEventArgs e) { if (TotalTimeChanged != null) { Application.Current.Dispatcher.Invoke(() => TotalTimeChanged(this, e)); } }
private void Mp3Player_CurrentTimeChanged(object sender, TimeSpanEventArgs e) { ProgressSlider.IsEnabled = true; ProgressSlider.Value = e.TimeSpan.Ticks; }
protected virtual void OnCurrentTimeChanged(TimeSpanEventArgs e) { if (CurrentTimeChanged != null) { CurrentTimeChanged(this, e); } }