public TrackInformationWindow(PlayableBase track) { this.CurrentTrack = track; InitializeComponent(); if (!CurrentTrack.IsOpened) { CurrentTrack.Load(); if (CurrentTrack.Image == null) { CurrentTrack.ImageLoadedComplete += (s, e) => { if (CurrentTrack.Image != null) { Dispatcher.Invoke(() => image = CurrentTrack.Image.Clone()); } }; return; } } if (CurrentTrack.Image != null) { image = CurrentTrack.Image.Clone(); } }