File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111using System . Threading ;
1212using System . Threading . Tasks ;
1313using System . Windows ;
14+ using System . Windows . Markup ;
1415using System . Windows . Threading ;
1516using PerformanceMonitorDashboard . Helpers ;
1617
@@ -39,6 +40,11 @@ protected override void OnStartup(StartupEventArgs e)
3940
4041 base . OnStartup ( e ) ;
4142
43+ // Use the user's locale for date/time formatting in WPF bindings (issue #459)
44+ FrameworkElement . LanguageProperty . OverrideMetadata (
45+ typeof ( FrameworkElement ) ,
46+ new FrameworkPropertyMetadata ( XmlLanguage . GetLanguage ( Thread . CurrentThread . CurrentCulture . IetfLanguageTag ) ) ) ;
47+
4248 // Apply saved color theme before the main window is shown
4349 var prefs = new Services . UserPreferencesService ( ) . GetPreferences ( ) ;
4450 ThemeManager . Apply ( prefs . ColorTheme ?? "Dark" ) ;
You can’t perform that action at this time.
0 commit comments