示例#1
0
 private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e)
 {
     ProfileStatPurpose
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
     ProfileStatSex
     .GetBindingExpression(UserProfileStat.StatValueProperty)?
     .UpdateTarget();
 }
示例#2
0
        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();
        }
示例#3
0
 private static void OnLocalizationChanged(
     object sender, LocalizationChangedEventArgs e)
 {
     LocalizationChanged?.Invoke(
         sender, e);
 }
示例#4
0
 private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e)
 {
     ReloadPostTypes();
 }
 private void OnLocalizationChanged(object sender, LocalizationChangedEventArgs e)
 {
     txtPostCategory
     .GetBindingExpression(TextBlock.TextProperty)?
     .UpdateTarget();
 }