I have the problem that
Thread.CurrentThread.CurrentUICulture is de-DE
Thread.CurrentThread.CurrentCulture is de-CH.
When I change the keyboard layout to de-CH Thread.CurrentThread.CurrentUICulture is not changed to de-CH. What have I to do that this value will be changed?
The problem is that I get in WPF the ',' decimal separator instead of '.'


Answering your question directly: keyboard layout is not UI Culture.
CurrentUICultureis Windows language. Not sure about other Windows versions, but in Windows 11 it'sSettings -> Time & Language -> Language & Region -> Windows display language:But decimal separator in not defined by
CurrentUICulture, butCurrentCulture, which is different. In Win11 it's Regional Format:In general, correct strategy of proper decimal separator (as a part of general application localization) is a big question and could be solved in many different ways based of your user preferences/business expectation and so on. Possible options could be:
CultureInfo.InvariantCulturewhile parsingand others...