private void ComboBoxLanguage_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { DataContext = null; if (ComboBoxLanguage.SelectedItem is Languages lang) { AssetProvider.SetLanguage(lang); } DataContext = this; }
private void ComboBoxLanguage_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { DataContext = null; if (ComboBoxLanguage.SelectedItem is Languages lang) { AssetProvider.SetLanguage(lang); } DataContext = this; }