C
C#10h ago
wildREA

✅ Ways to Add Language Support (WPF)

I'm creating a hardware monitor software that will show statistics of (primarily internal) components. There is a monitor and a settings user control to switch between the two. There are two user controls for the controls themselves and then a window, which is MainWindow that serves as the median between these two. How would I go about switching languages dynamically in my XAML when a selected ComboBoxItem for a language is selected, which is applied upon clicking on the apply button? Like methods of implementation.
2 Replies
Nasdack
Nasdack9h ago
One way is to use DynamicResource binding and swap your language's ResourceDictionary found in MergedDictionaries at runtime
wildREA
wildREAOP9h ago
Thanks!

Did you find this page helpful?