C
C#2mo ago
Elio

Dynamic Culture WPF

Hi, I have a question about handling dynamic culture changes in my WPF app. I'd like to change the culture while the app is running, so I call this method each time I change the app's culture. However, I have a problem when converting back a double input, because some threads were already open and didn't consider the new culture change. How should I handle this ? Should i do this in order to make sure the culture is consider Result = Convert.ToDouble(value, MyCurrentCulture);
No description
2 Replies
Hari
Hari2mo ago
Can you share the code where you are trying to convert it back?
Elio
ElioOP2mo ago
there is the code i'm using rn but it uses the culture of the thread which is not update if the thread is already running: Result = Convert.ToDouble(value);
Want results from more Discord servers?
Add your server