protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); SetupLogging(); SetupExceptionHandlers(); SetupCache(); ApplicationCulture.ResetCulture(); FrameworkElement.LanguageProperty.OverrideMetadata( typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag))); }
public void BaseSetup() { ApplicationCulture.SetCulture(Str.Culture); }
private void OnSettingsUpdated(Properties.Settings obj) { ApplicationCulture.ResetCulture(); DashboardViewModel.OnSettingsUpdated(); Application.Current.UpdateBindingTargets(); }