locked
ConverterParameter bindable RRS feed

  • Question

  • How to make converterparameter bindable in my XAML? I need that thay have field value returned from my Domain Service.

    Anyone can help-me?

    Thanks

     

    Tuesday, August 2, 2011 2:37 PM

Answers

  • Hi. Converter parameters cannot be bound. Often the best way is to add an additional property to your view model that exposes whatever value you need in your view, and then use that new property in your bindings.

    More advanced scenarios can also benefit from multi binding, a concept from WPF that is not available in Silverlight by default, but was implemented by e.g. Colin Eberhardt here.

    Tuesday, August 2, 2011 4:12 PM

All replies

  • Hi. Converter parameters cannot be bound. Often the best way is to add an additional property to your view model that exposes whatever value you need in your view, and then use that new property in your bindings.

    More advanced scenarios can also benefit from multi binding, a concept from WPF that is not available in Silverlight by default, but was implemented by e.g. Colin Eberhardt here.

    Tuesday, August 2, 2011 4:12 PM
    • OK.. Thanks
    Thursday, August 4, 2011 10:18 AM