IronPython and data binding plus the PyBinding markup extension
XAML is a markup language used to describe user interfaces for the Windows Presentation Foundation (WPF) UI library. PyBinding is a library created by Pixel-in-Gene allowing you to use IronPython for custom expressions in data binding situations: " essentially a DSL for creating Bindings ". A second blog entry discusses a detail of the WPF framework that makes this less useful than it could be in some situations. The PyBinding MarkupExtension: use Python statements for Data Binding Huge limitation of a MarkupExtension Many of us have felt the need to have custom expressions inside of Bindings. The need has ranged from applying mathematical operators to calling methods on bound objects. For simple needs you can probably create a custom IValueConverter or a IMultiValueConverter that can do the job, but when you want to use arbitrary expressions, something more elaborate is needed. The ScriptConverter class that I blogged about earlier provides the underpinning for the PyBindi...