Back to Devexpress

DashboardLocalizer.Active Property

dashboard-devexpress-dot-dashboardcommon-dot-localization-dot-dashboardlocalizer.md

latest4.0 KB
Original Source

DashboardLocalizer.Active Property

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

Namespace : DevExpress.DashboardCommon.Localization

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

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

Property Value

TypeDescription
XtraLocalizer<DashboardStringId>

An XtraLocalizer<T> descendant, used to localize the user interface at runtime.

|

Remarks

To manually localize the Dashboard user interface, create the DashboardLocalizer class descendant, and assign this object to the static Active property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Active property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-dashboard-localize-stringid-visualizer/CS/WinForms_Localizer/WinForms_Localizer/DesignerForm1.cs#L16

csharp
DashboardWinLocalizer.Active = new MyDashboardWinLocalizer();
DashboardLocalizer.Active = new MyDashboardCoreLocalizer();
InitializeComponent();

wpf-dashboard-localized-stringid-visualizer/CS/Dashboard_Wpf_Localizer_Example/MainWindow.xaml.cs#L13

csharp
{
    DashboardLocalizer.Active = new MyDashboardLocalizer();
    InitializeComponent();

winforms-dashboard-localize-stringid-visualizer/VB/WinForms_Localizer/WinForms_Localizer/DesignerForm1.vb#L12

vb
DashboardWinLocalizer.Active = New MyDashboardWinLocalizer()
DashboardLocalizer.Active = New MyDashboardCoreLocalizer()
InitializeComponent()

wpf-dashboard-localized-stringid-visualizer/VB/Dashboard_Wpf_Localizer_Example/MainWindow.xaml.vb#L12

vb
Public Sub New()
    DashboardLocalizer.Active = New MyDashboardLocalizer()
    InitializeComponent()

See Also

DashboardLocalizer Class

DashboardLocalizer Members

DevExpress.DashboardCommon.Localization Namespace