This question is locked. New answers and comments are not allowed.
Hi,
We are are creating an application that uses Docking.
The users have asked me if it was possible to change the descriptions from the docking panel "floating", "docakble" etc. to the local language.
I have tried to use the LocalizationManager (see the code below) but the GetStringOverride is never fired for the docking panel.
I hope that someone can help me.
Kind Regards,
Marcel
Sample application I created in order to test the use of the LocalizationManager.
Code behind for the page.xaml.
Simlified class that I have build in order to translate the descriptions from the controls.
We are are creating an application that uses Docking.
The users have asked me if it was possible to change the descriptions from the docking panel "floating", "docakble" etc. to the local language.
I have tried to use the LocalizationManager (see the code below) but the GetStringOverride is never fired for the docking panel.
I hope that someone can help me.
Kind Regards,
Marcel
Sample application I created in order to test the use of the LocalizationManager.
<UserControl xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" x:Class="SLLocalisationDockPanel.Page" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"> |
<Grid> |
<radDock:RadDocking x:Name="radDocking1"> |
<radDock:RadSplitContainer radDock:DockingPanel.InitialSize="150,150" MaxWidth="600" |
Name="LeftContainer" InitialPosition="DockedLeft"> |
<radDock:RadPaneGroup x:Name="Group1"> |
<radDock:RadPane x:Name="Pane1" Header="Server Explorer"> |
<Image Source="../../Common/Images/RadDock/ServerExplorer.png" |
Stretch="None" HorizontalAlignment="Left" /> |
</radDock:RadPane> |
<radDock:RadPane x:Name="Pane2" Header="Toolbox"> |
<Image Source="../../Common/Images/RadDock/Toolbox.png" Stretch="None" |
HorizontalAlignment="Left" /> |
</radDock:RadPane> |
</radDock:RadPaneGroup> |
</radDock:RadSplitContainer> |
</radDock:RadDocking> |
</Grid> |
</UserControl> |
Code behind for the page.xaml.
using System.Globalization; |
using Telerik.Windows.Controls; |
namespace SLLocalisationDockPanel |
{ |
public partial class Page : UserControl |
{ |
public Page() |
{ |
LocalizationManager.Manager = new MyLocalizationManager(); |
LocalizationManager.Manager.Culture = new CultureInfo("nl-NL"); |
InitializeComponent(); |
} |
} |
} |
Simlified class that I have build in order to translate the descriptions from the controls.
using Telerik.Windows.Controls; |
namespace SLLocalisationDockPanel |
{ |
public class MyLocalizationManager : LocalizationManager |
{ |
public override string GetStringOverride(string key) |
{ |
switch (key) |
{ |
case "GridViewGroupPanelText": |
return "Sleep de kolom naar hier om te kunnen groeperen."; |
} |
return base.GetStringOverride(key); |
} |
} |
} |