New Here?
My name is Nir and I'm the founder of Nbd-Tech, this blog is about things that interest me, so you can find posts on productivity, running a software company and obscure technological topics.
If you like what you read you can
subscribe to the blog feed or
follow me on twitter.
Here are links to a 3 part series with code that let you use C#-like lambda expressions in XAML instead of writing value converters.
For example, instead of writing a value converter that takes a DateTime and calls ToShortTimeString you can write:
<TextBlock Text='{Binding Source={x:Static s:DateTime.Now},
Converter={fix:Lambda "dt=>dt.ToShortTimeString()"}}'>
- WPFix Part 1 (Lambda Converter Extension)
- WPFix Part 2 (Binding Extension)
- WPFix Part 3 (Extension Methods)
posted @ Thursday, November 6, 2008 4:14 PM