RadPane and localization

1 Answer 91 Views
Localization
Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
Luigi asked on 13 Oct 2022, 03:18 PM | edited on 13 Oct 2022, 03:20 PM

Hi,
I have a radPane defined as following.

The text is loaded dynamically so i can select a different StringDictionary.
It works perfectly on every string in application and also in this control, but the header is still in the original language (the dictionary is initially loaded and succesively discarded).

You can see the effect on the image attached: the text on the tab is correct, while the text on the header is wrong.

Thank you

Luigi

 

<t:RadPane  
		DataContext="{Binding DataContext, ElementName=radDocking1}"
		IsHidden="{Binding StatoFinestre.FinestreProgetto.DatiHidden, Mode=TwoWay}">
		<t:RadPane.Header>
		   <local:StackPanelText Orientation="Horizontal">
			<Image Source="/Images/Tab Dati_24x24.png" Style="{StaticResource TreeviewImageSize}"/>
			<TextBlock Text="{DynamicResource ResourceKey={x:Static r:ResourcesKeys.TabProjectDatiHeader}}"/>
		  </local:StackPanelText>
		</t:RadPane.Header>

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 18 Oct 2022, 07:24 AM

Hello Gianluca,

The part of the RadPane that is named Header is the element that shows the tab's text. The header that is displayed on top of the RadPaneGroup is called Title. To achieve your requirement, you should define also the TitleTemplate property of the RadPane. 

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Localization
Asked by
Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or