static void PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.Key == ambienceProperty) { defaultAmbience = null; OnAmbienceChanged(EventArgs.Empty); } if (e.Key == codeGenerationProperty || e.Key == textEditorProperty) { ApplyCodeGenerationPropertiesToNRefactory(); } }