private void comboBoxMultilingual_Language_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selectedItem = comboBoxMultilingual_Language.SelectedItem as ComboBoxItem; var cultureName = selectedItem.Tag as string; CultureInfo culture; if (string.IsNullOrEmpty(cultureName)) { // Use the culture of the parent culture = null; } else { culture = CultureInfo.GetCultureInfo(cultureName); } LocalizationScope.SetCulture(panelMultilingual, culture); LocalizationScope.SetUICulture(panelMultilingual, culture); LocalizationManager.UpdateValues(); }
public SampleCustomControl() { // Set the resources manager in the constructor LocalizationScope.SetResourceManager(this, Properties.Resources.ResourceManager); }