未验证 提交 29265a98 编写于 作者: J Jérôme Laban 提交者: GitHub

Merge pull request #11838 from unoplatform/Youssef1313/primary-language-override

fix: Change UseLegacyPrimaryLanguageOverride default value to true
......@@ -18,11 +18,11 @@ namespace Uno
public static class ApplicationLanguages
{
/// <summary>
/// <see cref="Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride"/> used to take effect (by changing current culture) during its setter.
/// On Windows, changing this property only takes effect after restarting the application. We changed the default behavior as a breaking change to match Windows.
/// Set this property to true to get the old behavior.
/// <see cref="Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride"/> takes effect (by changing current culture) during its setter execution.
/// On Windows, changing this property *may* take effect only after restarting the application.
/// Set this property to false to require an app restart for the change to take effect. The default of the property is true.
/// </summary>
public static bool UseLegacyPrimaryLanguageOverride { get; set; }
public static bool UseLegacyPrimaryLanguageOverride { get; set; } = true;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册