Keith's Blog

Insights on testing, Silverlight, and other stuff

Posts
  • Keith's Blog

    Developing Testable Silverlight Applications: Part One – Abstracting Data Persistence

    • 6 Comments
    At Microsoft PDC 2009 I gave a talk entitled “Developing Testable Silverlight Applications”. We looked at how to use the Inversion of Control principle with the Model-View-ViewModel design pattern to isolate the dependencies within a Silverlight 4 application for easier testing. We also saw how to improve testability by taking advantage of the natural boundaries in Silverlight applications utilizing WCF RIA Services to query for data and persist units of work. There was so much material to cover during my session that I am going use a series of blog posts to provide more in-depth detail on the techniques I talked about....
  • Keith's Blog

    Making multiple selection in a DataGrid bindable

    • 5 Comments
    A customer recently asked how to change the selection of a row in the Silverlight 3 DataGrid based on the values of the columns. The brief answer is to add an event handler for LoadingRow and call dataGrid.SelectedItems.Add(e.Row.DataContext), but the...
  • Keith's Blog

    Failures in .NET RIA Services are silent by default

    • 1 Comments
    Due to the async nature of the .NET RIA Services programming model, exceptions and errors during load and submits aren't thrown on the client. Instead, the errors are exposed through an Error property which can be found in the event args instances passed...
  • Keith's Blog

    Building a dual thumb slider for Silverlight 2 Beta 1

    • 1 Comments
    The Slider control that shipped with the Silverlight 2 Beta 1 SDK only supports picking a single value. Back at Mix08 in March I threw together a control that allows selecting a range using two thumbs, but I haven't had a chance to talk about it until now. So, without further ado let me introduce the RangeFinder control....
  • Keith's Blog

    Re-templating a WatermarkedTextBox

    • 1 Comments
    Hosted by Silverlight Streaming Ta-da! Here's a new look for the WatermarkedTextBox (a.k.a. WTB) in Silverlight 2 Beta 1. This was relatively simple to do just by changing the template. Here is the XAML for the template: < ControlTemplate...
  • Keith's Blog

    How to set the XAML editor to full view by default

    • 0 Comments
    For hard-core XAML programmers or just to boost performance when working with XAML files in VS 2008, you may want to have the default view be just the XAML editor (no designer visible). To do so, select the Tools->Options... menu item. Then navigate...
  • Keith's Blog

    Silverlight 2 Beta 1 Hints

    • 2 Comments
    Remember, it is a beta so there are going to be some things that are by design and others which just need temporary workarounds. Here are some things I learned when developing and testing some of the controls delivered as part of the Silverlight 2 Beta...
Page 1 of 1 (7 items)