This question is locked. New answers and comments are not allowed.
Hi,
I have a RadMenuItem. Its header is bound to a property of the DataContext. In addition I need the Header-Text to be formatted in the XAML with a String given in a resource file.
I tried the following which does NOT work:
In the forum I found someone doing this using the following code:
With this code I have the problem, that I don't know where Resx resxName, ... come from.
Could please someone provide me with a working example.
Thanks,
Stefan
I have a RadMenuItem. Its header is bound to a property of the DataContext. In addition I need the Header-Text to be formatted in the XAML with a String given in a resource file.
I tried the following which does NOT work:
<
telerikNav:RadMenuItem
StaysOpenOnClick
=
"False"
>
<
telerikNav:RadMenuItem.Header
>
<
TextBlock
Text
=
"{Binding name, StringFormat={Binding TXT001, Source={StaticResource ImpRes}}}"
>"></
TextBlock
>
</
telerikNav:RadMenuItem.Header
>
</
telerikNav:RadMenuItem
>
In the forum I found someone doing this using the following code:
<
MenuItem.Header
>
<
TextBlock
Text="{Binding
Path
=
Name
,
StringFormat={Resx
resxName
=
PSSPECApplication
.Controls.ProjectControlResources,
Key
=
load_ContextMenu_Save_Header
},
Mode
=
OneWay
}" />
</
MenuItem.Header
>
With this code I have the problem, that I don't know where Resx resxName, ... come from.
Could please someone provide me with a working example.
Thanks,
Stefan