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

Jerry Nixon picture Jerry Nixon · Jun 27, 2011 · Viewed 13k times · Source

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

Answer

Sean U picture Sean U · Jun 27, 2011

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.