从视图更新ViewModel [英] Update ViewModel from View
本文介绍了从视图更新ViewModel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由View更新/更新ViewModel时是否有任何事件或方法来了解触发器?
Is there any event or way to know the trigger when the ViewModel is updating/updated by the View?
INotifyPropertyChanged
和 PropertyChanged
是在ViewModel更新视图时使用的。
INotifyPropertyChanged
and PropertyChanged
is used when the ViewModel updated the View.
但是有什么反向作用吗?
But is there any reverse?
推荐答案
如果使用绑定,则可以使用 Binding.SourceUpdated
和 Binding.TargetUpdated
附加事件。
If you are using binding then you can use Binding.SourceUpdated
and Binding.TargetUpdated
Attached Events.
这篇关于从视图更新ViewModel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文