usage in setter
ghost1372 opened this issue · comments
Is it possible to use in the setter?
<style targettype="TextBlock">
<setter property="Text" value="{DynamicTranslation key}"/>
</style>
This does not work, because DynamicTranslation
tries to create a binding to setter.
A solution would be to use a control as setter value that uses DynamicTranslation
.
Does this helped you?
yes helped me.😉
But I saw another library that work without problems. It will be good to support this feature in the future.
https://github.com/XAMLMarkupExtensions/WPFLocalizationExtension/blob/244f915125315ef429cfb724e0e5170cbe5ca102/tests/HelloWorldWPF/MainWindow.xaml#L23
I think I found a way that solved this problem to 95%.
It would be nice if you could have a look to Version 1.2.0.
Only the case that the translation provider changes cannot be handled.
thank you it works