Home » FAQ » WPF » Attributes » How can I set the Language property to the current user’s UI language ?
If you need to set the ‘Language’ property to the current user’s UI language, use the following code.
[C#] text1.Language = System.Windows.Markup.XmlLanguage.GetLanguage( System.Globalization.CultureInfo.CurrentUICulture.IetfLanguageTag);
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with