within a textblock i would like a text, depending on the value of a boolean property. the text has to be taken using a DynamicResource, because of the multiple langauges the application supports.
there are two entries available in the DynamicResources, one for when the property is true, one for when the property is false.
i would like to solve this in xaml, so that the correct DynamicResource is shown, depending on the value of the property.
anybody an idea or this is possible ? (and how ;-) ? thanks.
Below is solution for your problem.
MainWindow.xaml
MainWindowViewModel
Better option is create two language files with same keys but with different values and merged proper files on runtime. In this case you don't have to check boolean property every time!