LanguageBinding ResourceName={Binding Content}

Topics: Questions
Feb 3, 2015 at 9: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?
Feb 12, 2015 at 6:50 PM
Nope. You will need to create your own markup extension.
Feb 13, 2015 at 12:15 PM
Yes. Thats what I try at the moment. But thats not so easy.