-
MVVM is a topic that can easily take hours of discussion. Unfortunately, I only had less then one to talk about (at least some of) its goals, parts and possible implementations. Below is my slide deck: And the code: download The code is structured in a way that helps you see the changes in the code while...
-
One of the more popular posts on my blog here were the Dynamic Forms for Silverlight series I did a couple of years ago. Dynamic forms are useful for cases when you want to compose a form on the server and the client just renders it based on the provided field types. This days it’s all about Windows...
-
Thought I’d give this one a try – 5 posts that were accessed by visitors of my blog the most and were posted in 2010: 1. Add version 4 components to your Silverlight 3 application with MEF : I wrote about using MEF (Managed Extensibility Framework) to import and offer additional capabilities to users...
-
My two-part article on rebuilding an existing Silverlight application to use MEF (Managed Extensibility Framework) for “selective composition” is now live on SilverlightShow.net ( part 1 , part 2 ). I took my Halloween Gallery application and made it pluggable so I can pull in different themes throughout...
-
Following up on The ultimate hack for Silverlight in Blend post from Josh Smith, I tried to make Blend display pictures from the My Pictures folder right in my Silverlight application. Needless to say, it worked as advertised :) The ViewModel is set through d:DataContext: public class MainPageViewModel...
-
A few of my Silverlight articles were published on the SilverlightShow site this past two months. The first one is an introduction to Silverlight/(WPF)/Blend behaviors, where I create a Silverlight Halloween Sound Player without writing a single line of code – the application is composed entirely in...
-
In my post -NTK09 conference blog post I mentioned one of my MVVM demos was about sharing a ViewModel between WPF , Silverlight and even Windows Forms application. I got a lot of requests for posting sample code online since then, which I intended to do earlier, but because the sample application code...
-
In my previous post , I wrote about “the first line of defense” against inputting invalid data in Silverlight applications (or any kind of application, for that matter) – preventing the user from entering invalid data through some an input form. Input form fields are commonly directly bound to the underlying...
-
When taking about data validation in applications, I usually describe the validation as the five-stage process or, put differently, five lines of defense against invalid data. In this post, I’ll write about the first line of defense – preventing the user entering the wrong data. 1. Preventing invalid...
-
This is the beginning of what’s going to be yet another series focusing on developing LOB applications with Silverlight. I’ve been wanting to write more on this topic since NTK, but there was always something else… In the series, I’ll build a sample application, similar to what I’ve been presenting on...
-
I’ve just started discovering Prism , mainly as a tool to help me use the MVVM with my apps. That said, by now, Prism proved itself with: Support for Commanding EventAggregator Unity integration Targeting both WPF and Silverlight EventAggregator is great for inter-VM communication, but only when subscribing...
-
Another powerful Silverlight 3 feature is navigation. The concept is very simple: provide a space on your main page, which you’ll later fill with custom content – pages. You’ll be able to navigate through these pages (by using browser’s Forward/Back buttons, directly access them and even provide custom...
-
Had 2 talks at this year’s NT Konferenca . The first one was about building LOB application with Silverlight, starting from what can we do today with v2 (run a short, 2 min video of a Silverlight 2 LOB app we’re going to be releasing within few weeks) and what’s coming with v3. The last part was about...
-
A couple of weeks ago, I wrote a post about handling dynamic forms in Silverlight. With this continuation post, I’m going to make a few changes to the original project: 1. Implement a new, custom, field type and provide a template for it (I’ll write about it later), and 2. Make a few changes to the FormFieldTemplateSelector...
-
The basic idea behind this post is to show a simple way for items/list controls to display each item data with a different template. The ideal candidate for such exercise are data forms, where user can enter different kinds of information - text, numbers, check marks, etc. Imagine a scenario, where each...