Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the ValueConversion attribut for a IMultiValueConverter

I changed my converter from IValueConverter to IMultiValueConverter : Previously I converted int to string :

[ValueConversion(typeof(int), typeof(string))]

But now I convert an int and a double to a string.

How should I specify my ValueConversion attribut now ? I have two input and one output now.

like image 308
Nicolas Avatar asked Dec 03 '10 10:12

Nicolas


1 Answers

I dont think you can use ValueConversionAttribute with an implementation of IMultiValueConverter

I think ValueConversionAttribute is primarily used for design-time support and MultiBindings dont seem to make much sense in this context

like image 142
Dean Chalk Avatar answered Sep 17 '22 14:09

Dean Chalk