LanguageSettingsDisplayLanguage Property

Gets or sets the display language of the current Thread, which is used for looking up localizable resources. When set, DisplayLanguageChanged and DisplayLanguageChangedGlobal events are triggered.
Default value: The display culture of the operating system.

Definition

Namespace: KGySoft
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
C#
public static CultureInfo DisplayLanguage { get; set; }

Property Value

CultureInfo

Remarks

Display language represents the language of the user interface of the application. This value is used when looking up localizable resources.

Use this property instead of Thread.CurrentThread.CurrentUICulture to keep language changes synchronized in your application.

When this property is set, DisplayLanguageChanged and DisplayLanguageChangedGlobal events are triggered, which makes possible for example to refresh the language of the UI on the fly on language change.

Exceptions

See Also