What's the difference between Dependency Property SetValue() & SetCurrentValue()

后端 未结 3 1529
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 05:32

The reason why I am asking this is because I was recommended by @Greg D (from this question) to use SetCurrentValue() instead, but a look at the docs and didn\'

3条回答
  •  醉酒成梦
    2020-11-27 05:40

    Further to the accepted answer:

    I found that this post explains SetCurrentValue() quite well. Note how the Dependency Property Value Precedence system will take a local value over a bound value. Which explains the commenters unexpected behaviour.

提交回复
热议问题