开发者

Slider in WPF Dependency Property

I'm trying to set the Value of the Slider to 1.0 but whe开发者_开发知识库n 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜