Help me multi-task with IValueConverters

Asked By 0 points N/A Posted on -
qa-featured

I’m getting tired of writing simple IValueConverters. I have my own library with some but there is always need for more. It would be great to have some kind of class library with lots of IValueConverters. Is there a library with common IValueConverters that I can use?

SHARE
Answered By 0 points N/A #118867

Help me multi-task with IValueConverters

qa-featured

Hi,

Whenever you prefer to affiliate a value converter with a binding, make a class that applies the IValue Converter port and then apply the Convert and Convert Back techniques. Converters can alter data from one case to additional, interpret data based on ethnic information, or alter other prospects of the demonstration. For examples of some distinctive converter scenarios, see "Data transition" in Data Binding Overview. Assess converters are culture-aware. Both the change and Convert Back techniques have a culture parameter that points the social data. Whenever cultural information is digressive to the conversion, then you can disregard that parameter in your custom converter. The Convert and Convert Back techniques also have a parameter addressed parameter so that you are able to use the same case of the converter with different parameters. For example, you can compose a initializing converter that acquires different arranges of data based on the input parameter that you apply. You are able to use the Converter Parameter of the Binding class to pass a parameter as an statement into the Convert and Convert Back techniques. There is a library with common IValue converter.

Related Questions