Binding to WinRT Slider Value Property

For some reason this did not work for me out of the box.  WPF does not seem to have as many gotchas.
Thanks to Iris (http://www.irisclasson.com/2012/10/02/winrt-app-guide-step-10-adding-a-lightweight-database-sqlite-and-crud-support-two-way-element-binding/) I figured out that I must explicitly specify

  BindingMode=TwoWay

for it to work

Example:

<Slider Grid.Column="1" Margin="3" Height="30" Minimum="15" 
           Value="{Binding RefreshFrequencyMinutes, Mode=TwoWay}"
           Maximum="60" Foreground="Blue"/>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s