microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.72k stars 307 forks source link

[MRTCore] Add Microsoft.Windows.Globalization.ApplicationLanguages class #4523

Closed kmahone closed 2 days ago

kmahone commented 3 days ago

A port of PR #4181

It looks like there are issues running the validation pipeline from forks, so porting the commits to a branch in this repo.

Changing the application language using PrimaryLanguageOverride property from Windows.Globalization.ApplicationLanguages namespace is not supported for WindowsAppSDK unpackaged apps, only for packaged. To support language change for un-packaged applications Microsoft.Windows.Globalization.ApplicationLanguages.ApplicationLanguages type is introduced in MRTCore. Microsoft.Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride property is supported both for packaged and un-packaged WindowsAppSDK apps.

Sample app used to verify the change: https://github.com/stefansjfw/testwasdk/blob/master/testlocalwinappsdk/App.xaml.cs#L36

kmahone commented 3 days ago

/azp run

kmahone commented 3 days ago

/azp run

azure-pipelines[bot] commented 3 days ago
Pipelines were unable to run due to time out waiting for the pull request to finish merging.
azure-pipelines[bot] commented 3 days ago
Pipelines were unable to run due to time out waiting for the pull request to finish merging.
kmahone commented 3 days ago

/azp run

azure-pipelines[bot] commented 3 days ago
Azure Pipelines successfully started running 1 pipeline(s).
kmahone commented 3 days ago

/azp run

azure-pipelines[bot] commented 3 days ago
Pipelines were unable to run due to time out waiting for the pull request to finish merging.
kmahone commented 2 days ago

/azp run

azure-pipelines[bot] commented 2 days ago
Azure Pipelines successfully started running 1 pipeline(s).
ghost1372 commented 1 day ago

@kmahone tnx for this great api, can we use it with next release? (v1.6-exp2 ?)