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

后端 未结 3 1766
春和景丽
春和景丽 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:29

    A regular Trigger only responds to dependency properties.

    A DataTrigger can be triggered by any .NET property (by setting its Binding property). However, its setters can still target only dependency properties.

提交回复
热议问题