(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

The Slider’s Guide to the MVVM Galaxy

(0 votes)
0 comments   /   posted by Silverlight Show on Mar 20, 2013
Tags:   mvvm , windows-8 , diederik-krols

Read original post by Diederik Krols at U2U Blog

This article describes two behaviors of the native XAML Slider control that reduce the joy of using it in MVVM Windows 8 Store apps. We all agree that XAML is one of the nicest technologies to develop Windows 8 Store apps, right? We all agree that you should use MVVM to build XAML apps, right? No, we don’t: unfortunately some of the native controls strongly disagree with us. The most well-known example of an MVVM-unfriendly XAML control is the radio button. A radio button is cleared by selecting another radio button in the same group. That’s OK, but at that moment it also clears its binding. It breaks the link to the viewmodels to which it was bound. This classic MVVM problem is generally solved by assigning a unique GroupName to each radio button, and deal with the mutual exclusiveness programmatically on the viewmodels’ side. Ouch!


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter


Latest News

  • End-of-week SilverlightShow Content Recap (4/5/2013)
  • Daily News Digest 4/5/2013
  • NEW Video Supported Article by Braulio Diez: Modular Javascript + MVVM for Silverlight Developers
  • Windows Phone 8 Tip: How to Animate a Clipping Mask