Skip to content
This repository

Simple Data Binding for WinForms

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 build
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Binda.nuspec
Octocat-spinner-32 README.md
Octocat-spinner-32 build.bat
Octocat-spinner-32 publish.bat
README.md

Binda

Simple Data Binding for WinForms. It provides a easy way to get data from any POCO into a Form and back.

Features

  • Bind the public properties of an object to controls with a matching name and data type on a Form.
  • Ability to declare property aliases.
  • Ability to register custom .NET control types.

Planned Features

  • Support for complex controls (Combobox, DataGrid, etc.) that represent a composite object.

How do I get it?

Via NuGet

PM> Install-Package Binda

Via Source

git clone git://github.com/minton/Binda.git

How do I use it?

Basic example

var binda = new Binder();
binda.Bind(myObject, myForm);

More examples

Check out the Wiki for more examples.

How do I run the tests?

I used MSpec for testing and the Test Runner in Resharper. If you don't have Resharper I recommend you get it. If that's not an option you can still run the tests manually via the MSpec command-line runner like this:

mspec.exe BindaTests.dll

Have an issue?

Submit an issue directly on GitHub and we'll take a look.

Why WinForms?

A lot of developers, myself included, are still actively working with legacy code on platforms where there is weak support for data binding. Binda in combination with an ORM like Dapper will make working with WinForms much less tedious.

Credit

Binda began as a quick spike by Michael Minton to bind POCO to WinForms and has since evolved into something useful thanks to the contributions from Will Green.

How to contribute?

All contributions to the project are welcome. If you have a great idea how to make Binda even better submit a Pull Request.

Karma

endorse Do it!

Binda is provided under the Apache 2.0 License. Commercial use requires attribution.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Something went wrong with that request. Please try again.