1

I know that the use of regular resource is as follows:

Text="{x:Static prop:Resources.xxx}"

Is there a way to use resource with a parameter from a resource file in XAML?

Hodaya Shalom
  • 4,327
  • 12
  • 57
  • 111
  • Do you want to insert that parameter to the resource? Like string.Format(resourceFormat, parameter) ? – stukselbax Mar 27 '14 at 07:58
  • Please see my [`answer`](http://stackoverflow.com/questions/18515482/textblock-binding-of-text-and-stringformat/18516105#18516105), may be help. – Anatoliy Nikolaev Mar 27 '14 at 08:04

1 Answers1

2

You should use the StringFormat as:

Text="{Binding Path=YourParameter, StringFormat='{x:Static prop:Resources.xxx}'}" 
stukselbax
  • 5,855
  • 3
  • 32
  • 54