LanguageBinding ResourceName={Binding Content}

Topics: Questions
Feb 3, 2015 at 8:14 AM
Hi again

I want to bind my text from a Textblock wit languageBinding of catel. My problem is that ResourceName is not fix. The ResourceName is in a property of viewmodel.

I tried this:

Text="{catel:LanguageBinding ResourceName={Binding Path=Content}}"

But I get an exception:
ResourceName is not a dependency property.

Is there a other way to solve this?
Coordinator
Feb 12, 2015 at 5:50 PM
Nope. You will need to create your own markup extension.
Feb 13, 2015 at 11:15 AM
Yes. Thats what I try at the moment. But thats not so easy.