private static void SoundChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var instance = d as SoundItemControl; if (instance != null) instance.DataContext = e.NewValue; }