Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Localizer.CreateDefaultLocalizer() Method

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
XtraLocalizer<StringId>

An EditResLocalizer object containing resources for the thread’s culture.

#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