Back to Devexpress

XtraLocalizer<T>.Active Property

corelibraries-devexpress-dot-utils-dot-localization-dot-xtralocalizer-1-7a24cd30.md

latest2.0 KB
Original Source

XtraLocalizer<T>.Active Property

Gets or sets a localizer object providing localization of the user interface at runtime.

Namespace : DevExpress.Utils.Localization

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public static XtraLocalizer<T> Active { get; set; }
vb
Public Shared Property Active As XtraLocalizer(Of T)

Property Value

TypeDescription
XtraLocalizer<T>

A XtraLocalizer<T> descendant, which is used to localize the user interface at runtime.

|

Remarks

By default, the Active property returns the XtraLocalizer<T> object currently used to localize the user interface. If you want to manually localize the user interface, you must create the XtraLocalizer<T> class descendant, and assign this object to the Active property.

Note

Call the XtraLocalizer.HandleRequestsFromAllThreads method at application startup to use localizer objects (including custom localizers) accross all application threads. By default, localizers are used in the thread where they were created/activated (see XtraLocalizer<T>.Active).

See Also

XtraLocalizer<T> Class

XtraLocalizer<T> Members

DevExpress.Utils.Localization Namespace