What's the difference between a Trigger and a DataTrigger?

后端 未结 3 1839
春和景丽
春和景丽 2021-02-02 05:46

They seem the same. Is there a significant difference? I think I am missing something.

3条回答
  •  眼角桃花
    2021-02-02 06:46

    The short answer (as I'm about to sleep)- A trigger works on dependency properties (typically GUI properties) whereas data triggers can be triggered by any .NET property (typically a property in a ViewModel that implements INotifyPropertyChanged).

提交回复
热议问题