first off, I'm aware of the general solution to the WPF culture problem: Setting Culture (en-IN) Globally in WPF App
My question is as follows:
I have an IValueConverter
for decimal numbers and dates and for them I get the correct CultureInfo
in the interface call
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
However I also want to convert an Enum value into a UI text. But for this I need CurrentUICulture
and not CurrentCulture
. Of course I could use Thread.CurrentThread.CurrentUICulture
or CultureInfo.CurrentUICulture
directly and just ignore the CultureInfo
.
But that doesn't feel like proper usage of the interface.