Localizer.CreateDefaultLocalizer() Method
In This Article
Creates and returns an EditResLocalizer object containing resources for the thread’s language and regional settings (culture).
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public static XtraLocalizer<StringId> CreateDefaultLocalizer()
#Returns
Type | Description |
---|---|
Xtra |
An Edit |
#Example
The following sample code demonstrates how to change the current culture used by the Resource Manager and perform runtime XtraEditors localization.
using System.Globalization;
using System.Threading;
using DevExpress.XtraEditors.Controls;
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de");
Localizer.Active = Localizer.CreateDefaultLocalizer();
See Also