private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e) { ProfileStatPurpose .GetBindingExpression(UserProfileStat.StatValueProperty)? .UpdateTarget(); ProfileStatSex .GetBindingExpression(UserProfileStat.StatValueProperty)? .UpdateTarget(); }
private void LocalizationUtils_LocalizationChanged(object sender, LocalizationChangedEventArgs e) { Current?.Dispatcher?.Invoke(() => { Thread.CurrentThread.CurrentCulture = e.NewLocalization?.Culture ?? LocalizationUtils.DefaultCulture; Thread.CurrentThread.CurrentUICulture = e.NewLocalization?.Culture ?? LocalizationUtils.DefaultCulture; }); SettingsManager.AppSettings.Language = e.NewLocalization.CultureName; SettingsManager.AppSettings.Save(); }
private static void OnLocalizationChanged( object sender, LocalizationChangedEventArgs e) { LocalizationChanged?.Invoke( sender, e); }
private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e) { ReloadPostTypes(); }
private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e) { txtPostCategory .GetBindingExpression(TextBlock.TextProperty)? .UpdateTarget(); }