且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在XAML中更改Minimum RangeBase时,滑块控件会触发ValueChanged事件

更新时间:2023-12-03 14:24:34

解决此问题的最干净的方法可能是推迟订阅ValueChanged事件,直到设置了最小基本范围为止.

Maybe the cleanest way to address this is to hold off subscribing to the ValueChanged event until after the Minimum baserange is set.

或者在尝试使用DataContext之前对其进行测试.

Or test DataContext before trying to use it.

-马克