KnockoutCS

A dependency tracking library for Silverlight 5 in the spirit of KnockoutJS. Based on Update Controls.

Other .NET client libraries coming soon. If yours isn't supported yet, please consider using Update Controls.

Create a POCO model.

public class Model
{
    public virtual string FirstName { get; set; }
    public virtual string LastName { get; set; }
}

Add computed fields.

private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    Model model = KO.NewObservable<Model>();
    DataContext = KO.ApplyBindings(model, new
    {
        FullName = KO.Computed(() => model.FirstName + " " + model.LastName)
    });
}

Bind.

<TextBox Text="{Binding FirstName, Mode=TwoWay}"/>
<TextBox Text="{Binding LastName, Mode=TwoWay}"/>
<TextBlock Text="{Binding FullName}"/>

To install KnockoutCS from NuGet, run the following command in the Package Manager Console

PM> Install-Package KnockoutCS

Source code is available on GitHub. Please fork the code and contribute.