question

HoneyBee-2519 avatar image
0 Votes"
HoneyBee-2519 asked HoneyBee-2519 commented

I am getting "System.IO.IOException: 'Cannot locate resource '****.baml'.'" after WPF localization operation.

In Net5 WPF, I have a Page that is contained within a Window. If you click the button on this page, the SettingWindow is displayed.
If you change the localization setting in SettingWindow (ComboBox) and close the window with the Apply button, the localization of the parent Window is changed.
If you click the button to display SettingWindow again, an error occurs.
[System.IO.IOException: 'Cannot locate resource subwindows/settings.baml'.']

For the second day, I don't understand the cause of this problem.

windows-wpf
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@ HoneyBee-2519.
Could you show me the code of your parent window and child window? Can you show you steps to localize the child window?

1 Vote 1 ·

@HuiLiu-MSFT Thanks for your interest in my question.

Please note that I have resolved the issue first.

The biggest problem is
As I do the localization
It was missing the default localization settings.

0 Votes 0 ·

0 Answers