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

Binding a Slider to an Enumeration in a Windows 8 Store app

(0 votes)
0 comments   /   posted by Silverlight Show on Jul 22, 2013
Tags:   windows-8 , windows-store , diederik-krols
Read original post by Diederik Krols at U2U Blog

Very often the values inside an enumeration type represent a sequence or a ranking, like small-medium-large or good-better-best. In a UI it would be appropriate to represent such a field through a slider control. This article explains how to build such a slider in XAML and C# and how to use it in a MVVM Windows 8 Store app. The slider is implemented as a lightweight user control to allow maximum templatability. The template just comes with a TextBlock that displays the value, and a Slider to change that value.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter