Geeks With Blogs

News Locations of visitors to this page
Brian Genisio's House of Bilz May 2009 Entries
Adventures in MVVM – Commanding with List Boxes
Continuing in my series of “Adventures in MVVM”, I want to talk about a few different approaches to working with List Boxes with the MVVM pattern. What I am writing here is generally true of all controls that derive from Selector, including ListBox and ComboBox. This example was developed in Silverlight, but the same concepts also apply to WPF. The Problem You have a list box in your view, and you want your ViewModel to do something when an item in the ListBox is selected. You want to do this without ......

Posted On Friday, May 29, 2009 11:27 PM

Adventures in MVVM – A Testing Story
Adventures in MVVM I have been spending a lot of time lately thinking about client architecture with Silverlight and to a lesser extent, WPF. I tend to subscribe to the philosophy that when you make your code testable, you get a lot of other great qualities along with it. I believe this so strongly that I go out of my way to architect my inherently untestable code in a way that I can, indeed, test it. Since I have been writing most my code for the Silverlight platform in the past several months, ......

Posted On Wednesday, May 27, 2009 9:52 PM

Adventures in MVVM – Commands in Silverlight
Adventures in MVVM EDIT: One of the things that I enjoy most about working with MVVM in Silverlight is how new it is. When I say “new”, I mean that Silverlight doesn’t support the pattern very well out of the box, so the development community needs to step up and solve these problems. Some solutions are better than others. In this article, I solved a problem the best way I knew how. I urge you to read Ward Bell’s comments to this article, and my responses. After reflecting on it more, I concede that ......

Posted On Friday, May 22, 2009 8:53 PM

Adventures in MVVM – Model-View-ViewModel
This post is intended to be a high-level post intended to index all of my “Adventures in MVVM” posts. I will be traveling the region this summer giving talks on the MVVM pattern and these posts are part of me working through the details of the MVVM pattern. These posts will not include the “What”. There are several good articles on the web that do that already. Instead, I will be taking a deeper dive into MVVM and writing on the “How” and “Why” of the MVVM pattern. Commands in Silverlight A Testing ......

Posted On Friday, May 22, 2009 8:52 PM

My Summer Speaking Gigs
I have been busy lining up opportunities to talk about Model-View-ViewModel (MVVM) in the context of WPF and SIlverlight. The good news is that I have some great gigs lined up this summer: June 11th, 2009 – Greater Lansing .Net Users Group – Flint, MI June 17th, 2009 – Great Lakes Area .Net Users Group – Southfield, MI June 26/27, 2009 – CodeStock – Knoxville, TN August 11th, 2009 – West Michigan .Net Users Group – Grand Rapids, MI (MVVM or Prism 2 TBD) In addition to that, I will be attending the ......

Posted On Tuesday, May 19, 2009 9:29 PM

What to do About Those Pesky Singletons?
No matter what your opinion is about singletons (I favor against them in most cases), it is important to understand what you can do when you encounter code that is dependent upon them. Unfortunately, I have come across a lot of code that has abused singletons in a way that makes other code less testable. My examples here are in C#, but this technique can work in any language. In some languages, these techniques are easier due to their dynamic capabilities. I am going to choose a singleton example ......

Posted On Saturday, May 2, 2009 11:06 AM

Copyright © Brian Genisio's House Of Bilz | Powered by: