Localize Header
Hi folks,
I'm using this piece of code:
xmlns:layout="using:Syncfusion.UI.Xaml.Controls.Layout"
<layout:SfDockingManager Grid.Row="1" x:Name="dockingManager">
<ContentControl x:Name="contentSchedule"
layout:SfDockingManager.Header="Start Page"
layout:SfDockingManager.DockState="Document">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<schedule:SfSchedule x:Name="schedule" Grid.Column="0" Grid.Row="0"
CurrentDateBackground="DarkCyan"
CurrentDateForeground="White"
CellSelectionBrush="DarkBlue"
ScheduleType="Month"/>
</Grid>
</ContentControl>
</layout:SfDockingManager>
I wish to localize "Start Page" text. How can I do it?
Cheers
I'm using this piece of code:
xmlns:layout="using:Syncfusion.UI.Xaml.Controls.Layout"
<layout:SfDockingManager Grid.Row="1" x:Name="dockingManager">
<ContentControl x:Name="contentSchedule"
layout:SfDockingManager.Header="Start Page"
layout:SfDockingManager.DockState="Document">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<schedule:SfSchedule x:Name="schedule" Grid.Column="0" Grid.Row="0"
CurrentDateBackground="DarkCyan"
CurrentDateForeground="White"
CellSelectionBrush="DarkBlue"
ScheduleType="Month"/>
</Grid>
</ContentControl>
</layout:SfDockingManager>
I wish to localize "Start Page" text. How can I do it?
Cheers
SIGN IN To post a reply.
5 Replies
DR
Durga Rajan
Syncfusion Team
February 26, 2018 11:15 AM UTC
Hi Josep,
Thanks for contacting Syncfusion support.
By default, we have provided the support to localize the text which are used as static in control. The mentioned header text can be changed dynamically and we have provided the Header property to change the header text of windows. So, we suggest you to define localized header to the Header property of the DockingManager. We have prepared sample based on your code snippet. In this we have directly given the header text to the header property as per your requirement.
Code Snippets:
|
<layout:SfDockingManager Grid.Row="1" x:Name="dockingManager">
<ContentControl x:Name="contentSchedule"
layout:SfDockingManager.Header="Página de inicio"
layout:SfDockingManager.DockState="Document">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<schedule:SfSchedule x:Name="schedule" Grid.Column="0" Grid.Row="0"
CurrentDateBackground="DarkCyan"
CurrentDateForeground="White"
CellSelectionBrush="DarkBlue"
ScheduleType="Month"/>
</Grid>
</ContentControl>
</layout:SfDockingManager> |
Please get back to us with more details, if the above solution doesn’t meet your requirement.
Regards,
Durga S.
JO
josep
February 26, 2018 11:36 AM UTC
Hi,
Sorry but your example harcoded "Página de inicio" in xaml. I wish to set it from resources. The problem is how to do it from xaml or codebehind.
Cheers
Sorry but your example harcoded "Página de inicio" in xaml. I wish to set it from resources. The problem is how to do it from xaml or codebehind.
Cheers
DR
Durga Rajan
Syncfusion Team
February 27, 2018 09:55 AM UTC
Hi Josep,
Thanks for the update.
We have prepared sample which tries to meet your requirement. In this sample we have retrieved the HeaderText with the help of ResourceLoader and bind the text to the Header property of the DockingManager. Please refer the below code snippet,
Code Example:
C# :
|
string HeaderString = new DockingResourceWrapper().HeaderText;
SfDockingManager.SetHeader(contentSchedule, HeaderString); |
XAML:
|
layout:SfDockingManager.Header="{Binding Source={StaticResource ResourceWrapperKey}, Path=HeaderText}" |
Please get back to us if you are facing any issues with above sample.
Regards,
Durga S.
JO
josep
February 27, 2018 10:19 AM UTC
Thanks,. Now it works
DR
Durga Rajan
Syncfusion Team
February 28, 2018 03:58 AM UTC
Hi Josep
Thanks for the update. Please let us know if you need any further assistance on this.
Regards,
Durga S.
Thanks for the update. Please let us know if you need any further assistance on this.
Regards,
Durga S.
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
JO josep
- Feb 23, 2018 09:20 PM UTC
- Feb 28, 2018 03:58 AM UTC