-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResourceManagement of text in XAML #138
Comments
@Marv51 - instead of using the Windows.* namepsace, you should migrate to the corresponding Windows App SDK namespaces. Here are docs on Mapping of UWP APIs to Windows App SDK and MRT to MRT Core migration. The example code in the existing UWP docs still applies to WinUI3/Windows App SDK. x:UID works the same as with UWP, so you should only need to change the namespaces. |
How can I control the language used to get values for x:Uid for unpackaged Desktop apps? I am trying to make a dynamic language change by re-creating views after changing the language in a ComboBox. In the UWP, I used Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = language; but this is not supported for unpackaged apps |
@angelazhangmsft I'd relabel this as a bug, see discussion at microsoft/WindowsAppSDK#1687 (comment). There's no way to access the internal MUX ResourceContext to change its qualifiers blocking this scenario. @huichen123 @andrewleader for 👀 |
Thanks @riverar for pointing that out!
@HavenDV, we reopened microsoft/WindowsAppSDK#1687 to track that feature request. |
The ResourceManagement sample does not show the most common WinUI 3 case for localization: Strings in XAML files.
I was wondering how to use MRT Core with x:Uid attributes. The existence of the two resource systems has me pretty confused.
Should I just stay with "Windows.ApplicationModel.Resources.ResourceLoader"?
The text was updated successfully, but these errors were encountered: