WPF Databinding thread safety?

后端 未结 3 588
忘掉有多难
忘掉有多难 2020-11-29 04:39

Well lets say i have an object that i databind to, it implements INotifyPropertyChanged to tell the GUI when a value has changed...

if i trigger this from a differen

3条回答
  •  伪装坚强ぢ
    2020-11-29 05:24

    In practice it seems to work as expected and seems to be thread-safe (haven't seen anything odd happen or exceptions as a result of updating on background thread). I believe it invokes on to the UI thread when needed, but I'm not too familiar with the internals.

提交回复
热议问题