Relative Content

Tag Archive for c#globalizationcultureinfo

Detecting System Locale Change in C#

I’m hooking into SystemEvents.UserPreferenceChanged event in a WPF application to detect when the user changes the regional format. I’m then attempting to determine the new region (CultureInfo) by clearing the culture cached data using ClearCachedData, starting a new thread and inspecting that thread’s culture (original SO post here)