Functional reactive programming in C# for WPF
I've been working on a library to wrap WPF dependency properties with signals so that data binding is easier to do in WPF when using C#:
Dependency properties by themselves are like signals (time-varying values) but don't support direct transformation (i.e., map) or composition like signals do. Instead, you have to define verbose value converters and jump through a lot of hoops. To solve this problem, the WPF signal library creates a signal-like wrapper around dependency properties so they can support direct transformation and composition; e.g., we can directly express relationships like:
rectangle().top().bind = canvas.height() - rectangle.height()
meaning that the rectangle is stuck to the bottom of the canvas, even as the size of the canvas or rectangle changes.
This is currently a source code release only. SignalLib is a Visual Studio 2008 .NET 3.5 project, and an example application (in the SignalExample project) is provided to help introduce the library. Feedback is appreciated.
Active forum topics
New forum topics