$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Localize Scheduler Navigator in C#

Localize KetticSchedulerNavigator in C#.NET

KetticSchedulerNavigator also supports the localization to display text and message of this control in a specific language. This is achieved via using the SchedulerNavigatorLocalizationProvider C# class. The KetticSchedulerNavigator control is a .NET component used to build the navigation functionality for the Scheduler views of Day, Week, Month, and Year. This control allows the end users to easily move to the previous and the coming view of a day, a week, and a month by using the arrow keys.

C# Localizing KetticSchedulerNavigator for Windows application

To localize the KetticSchedulerNavigator control for Windows Forms, we should use the SchedulerNavigatorLocalizationProvider C# class. This localizing C# class is able to define the default values for all strings shown for the users. And we shall override the default localization via inheriting from the SchedulerNavigatorLocalizationProvider C# class and then override the GetLocalizedString method. The following C# code shows how to achieve this.

public class CustomSchedulerNavigatorLocalizationProvider : SchedulerNavigatorLocalizationProvider
{
public override string GetLocalizedString(string id)
{
switch (id)
{
case SchedulerNavigatorStringId.DayViewButtonCaption:
{
return "Day View";
}
case SchedulerNavigatorStringId.TimelineViewButtonCaption:
{
return "Timeline View";
}
case SchedulerNavigatorStringId.DisplayWeekendCheckboxCaption:
{
return "Display Weekend";
}
case SchedulerNavigatorStringId.TodayButtonCaptionToday:
{
return "Today";
}
}

return String.Empty;
}
}
After the implementation of the new custom localization provider, we should create an instance of the new provider, and then assign the instance to the static CurrentProvider property of the C# class, SchedulerNavigatorLocalizationProvider. The C# code below shows how to apply the localization provider.

SchedulerNavigatorLocalizationProvider.CurrentProvider = new CustomSchedulerNavigatorLocalizationProvider();
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls