Project Description
Tiger is a small languaje based on expressions, so it's perfect for writing the body of a WPF/SL converter.

For example here's the code needed to write a visibility converter:

<tc:ValueConverter x:Key="NegatedBoolConverter">
	<tc:ValueConverter.Program>
		<sys:String>
if value then Visibility.Visible else Visibility.Hidden
                </sys:String>
	</tc:ValueConverter.Program>
</tc:ValueConverter>

And what about the negated bool converter??

<tc:ValueConverter x:Key="NegatedBoolConverter">
	<tc:ValueConverter.Program>
		<sys:String>not value</sys:String>
	</tc:ValueConverter.Program>
</tc:ValueConverter>

There are some times when you don't need to rehuse the converter and just use one time in one control. Or the converter just should evaluate an aritmetric expression.

A converter fully written in XAML fit's perfectly in those scenarios.

As for performance, the code is parsed only once and a System.Linq expression is generated and used as the body of the converter.

The project is still in development phase, i'll try to put some more info ASAP.

Last edited Apr 10, 2012 at 5:49 PM by arielsvn, version 3