KGy SOFT

LanguageSettingsDisplayLanguage Property

KGy SOFT Core Libraries Help
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.

Namespace:  KGySoft
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 6.0.0-rc.1
Syntax

public static CultureInfo DisplayLanguage { get; set; }

Property Value

Type: CultureInfo
Exceptions

ExceptionCondition
ArgumentNullExceptionvalue is .
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.

See Also

Reference