private void HandleMIDIPreviewPlayingCompleted(object sender, EventArgs e) { Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(delegate() { previewChannelButton.Foreground = Brushes.Black; })); }