tags:

views:

26

answers:

1

I'm trying to set the Value of the Slider to 1.0 but when in debugger, I can see that after the assignment like:

surfaceSlider.Value = 1.0;

the value stays at the current value (0.0).

Any ideas why I can't set that dependency property?

A: 

WPF Slider Value property is dependency property, this will accept the values.

I think you are creating a custom control with a dependency property named "Value". Make sure your setter property is public and OwnerType is your class.

Ragunathan
No this is not a custom control. SurfaceSlider is a control that is part of the Surface SDK
tiaga