Brian Genisio's House of Bilz

  Home  |   Contact  |   Syndication    |   Login
  72 Posts | 0 Stories | 186 Comments | 0 Trackbacks

News

Locations of visitors to this page

Archives

Post Categories

Who am I?

August 2009 Entries

More Adventures in MVVM One of the biggest points of friction for me when implementing the MVVM pattern happens when I need to bind commands to events. When using Prism, I get the Button.Click command binding out of the box, but every other event needs to be wired up individually. Doing this requires a LOT of boilerplate code that is very easy to get wrong. In my last post, I published some code to alleviate that pain. Still, it requires you to write a new behavior and attachment for every event...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

More Adventures in MVVM There are several examples on the web that describe the “Attached Behavior” pattern in Silverlight and WPF. This pattern works really well for binding commands in the ViewModel to controls in the View. The problem with this is that for every behavior, there is a LOT of boilerplate code that goes along with it. Because the DepencencyProperties need to be static, they cannot be easily abstracted into a common class. If you want to attach a MouseEnterBehavior to a control, you...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

More Adventures in MVVM It has been a while since I have posted. With CodeStock, GiveCamp, Vacation, overtime at work and my other speaking gigs, I have been very busy. But things are calming down. I have several posts I’d like to get out, but for the time being, I thought I would post my conversation with David Giard about the MVVM pattern:...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati