maybe my question is stupid, but is it possible to use converters for string literals without binding to value? In my case converter is used for translation (literal (key in resx) is text in default language and converted value is translated text).
- I can create string property inside my ViewModel, but there are a lot of such literals, and it can make a mess in view model.
- Another solution is to bind value directly to resx:
<TextBlock Text="{x:Static SomeResxFile.Employees, Converter=...}" />
But there can be spaces in my resx key, so this approach does not work.
I do not want to create property for every label in my app, but I also want to use strings with spaces as key in my resx.
What I want to reach:
<TextBlock Text="{Binding Value="Add employee", Converter=...}" />