Silverlight Model-View-ViewModel-Presenter

Terms Defined Model: C# Classes that model the business domain View: XAML Markup that contains declarative rendering instructions and mappings to a model. Presenter: C# Classes that contain imperative presentation logic and event targets. View Model: C# classes that model the visual domain M-V-P (em-vee-pee) Strengths: Provides clear separation of presentation logic and event handling … Continue reading Silverlight Model-View-ViewModel-Presenter

Silverlight 2: ComboBox Selection / Source Conflict

To reproduce: 1. Bind the ItemsSource to a View Model property of type List<T>, we’ll call it “EntityList” 2. User selects an option from the ComboBox. 3. Set EntityList to a new List<T> Results: The next time UpdateLayout is called you will get a System.ArgumentException. System.ArgumentException: Value does not fall within the expected range. at … Continue reading Silverlight 2: ComboBox Selection / Source Conflict

Testing Surface Applications with the Surface Simulator

The Surface SDK comes with an awesome tool that is called the Surface Simulator. This tool allows you to test your applications that have been built with the Surface SDK. It even simulators multiple contact points when you plug multiple USB mice into your computer! Sweet! Right? Well, yes and no. After opening the Surface … Continue reading Testing Surface Applications with the Surface Simulator