Scott Logic Ltd

Archive For "mvvm" Tag

Integrating Knockout and jQueryMobile

Colin Eberhardt, October 23rd, 2012

TweetThis blog post looks at the issues regarding integration of KnockoutJS and jQueryMobile, and provides a simple worked example – a Twitter Search application – where the two technologies play nicely together! The code for this blog post can be found on github. You can also try it out on your phone or browser. Integration [...]

Read More


Converting an HTML5 App to a Native App with Titanium

Chris Price, October 1st, 2012

In this post Colin Eberhardt’s Property Finder app gets another outing, but this time with a native twist. Titanium is a popular open-source framework for building multi-platform native apps in JavaScript. Here I’ve used it to port the existing MVVM application to iOS and Android whilst trying to maintain as much code reuse as possible. [...]

Read More


Tombstoning with PhoneGap for Windows Phone 7 (and KnockoutJS)

Colin Eberhardt, October 24th, 2011

A few weeks back I wrote a blog post about how the recent announcement of PhoneGap support for Windows Phone 7 (WP7) which makes it possible to develop HTML5-based applications. In my previous blog post I showed the development of a simple HTML5 / JavaScript application which PhoneGap wraps up within a Silverlight application ‘shell’ [...]

Read More


A Windows Phone 7.1 (Mango) MVVM Tombstoning Example

Colin Eberhardt, October 3rd, 2011

In this blog post I look at the new application lifecycle model that Windows Phone 7.1 (Mango) introduces, and show how to handle the various lifecycle events in a simple MVVM application. In a previous blog post I described the development of a simple Windows Phone 7 application using the Model-View-ViewModel (MVVM) pattern and how [...]

Read More


A Simple Windows Phone 7 MVVM Tombstoning Example

Colin Eberhardt, May 23rd, 2011

This blog post shows how to implement tombstoning within a Windows Phone 7 application that following the Model-View-ViewModel pattern. I have to admit Windows Phone 7 tombstoning had me in a bit of a muddle for a while, so many places to store state, a confusing lifecycle and navigation model. Most of the blog posts [...]

Read More


ViewModel INotifyPropertyChanged Code Generation

Colin Eberhardt, April 21st, 2011

This blog post describes a novel method of generating boiler-plate MVVM code using codesnippet automation. You simply add attributes to your view model classes and the code is generated for you! Model-View-ViewModel (MVVM) has become the de facto pattern for Silverlight, WPF and WP7 applications, providing code that is easily tested and couples cleanly to [...]

Read More


MVVM Charting – Binding Multiple Series to a Visiblox Chart

Colin Eberhardt, March 6th, 2011

This post describes a method of using attached properties to bind a ViewModel which contains multiple data series to a Visiblox chart without any code-behind. The Visiblox chart supports databinding in both WPF and Silverlight, where the X and Y values for each datapoint are bound to properties on an underlying model. However, there is [...]

Read More


The mini-ViewModel pattern

Colin Eberhardt, August 7th, 2009

The construction of a ViewModel is often seen as the standard technique for solving binding problems within WPF and Silverlight. However, the addition of a ViewModel adds complexity to your code. This post describes an alternative method where a mini-V…

Read More

© 2013 Scott Logic Ltd. All Rights Reserved.