WPF

MVVM: Using a Timer in your ViewModel

Binding / Coding / MVVM / Silverlight / WPF

Yesterday I found myself needing to periodically sample data for a real-time chart and realized that the “Timer” classes in System.Threading and System.Windows didn’t quite work as expected, raising... Read More

Double-Click Event in Silverlight on FrameworkElement

Coding / Silverlight / WPF

I was rather astonished at the lack of a double-click event in Silverlight despite its existance in WPF (that I’m aware of). I’ve looked at quite a few solutions... Read More

Cross-Field Attribute Validation in WPF using MVVM and IDataErrorInfo

Binding / Coding / MVVM / Validation / WPF

At one point or another we’ve all had to do some sort of input validation.  In this post, I’m going to show you how to use the IDataErrorInfo interface... Read More

WPF ComboBox and DataBinding: DataContext, ItemsSource, DisplayMemberPath, SelectedItem, SelectedValue & SelectedValuePath

Coding / WPF

A few weeks ago, a friend convinved me to start looking into WPF, XAML and the MVVM pattern.  As I’ve been primarily working with ASP.NET WebForms & MVC2 applications... Read More