My favorites | Sign in
Project Home Downloads Issues Source
Search
for
Usage  
Updated Jan 12, 2009 by havard.stranden

To use Strongbind, simply download the source, build the assembly, and start binding.

Basic binding

// Imagine this having two properties "Name" and "Selected"
IBusinessObject obj = new BusinessObject();
// A plain old check box
CheckBox checkbox = new CheckBox();

// Create binding scope to start binding
using(BindingScope binder = new BindingScope())
{
    // Declare binding source to use when binding
    IBusinessObject source = binder.CreateSource(obj);

    // Declare binding target to use when binding
    CheckBox target = binder.CreateTarget(checkbox);

    // Bind
    binder.Bind(source.Name).To(target.Text);
    binder.Bind(source.Selected).To(target.Checked);
}

Sign in to add a comment
Powered by Google Project Hosting