private static void OnSpectrogramSizeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Spectrogram spectrogram = d as Spectrogram; spectrogram.InitializeSpectrogramBitmap(true); }
private static void OnModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Spectrogram spectrogram = d as Spectrogram; spectrogram.mode = (SpectrogramMode)e.NewValue; }