Reputation: 361762
There are two properties of same type but exists in different classes.
This confuses me a lot, and so I've few questions whose answer I'm looking for:
Upvotes: 6
Views: 807
Reputation: 136673
As the documentation page that you've linked to in the question says:
FrameworkElement.Triggers can only contain EventTriggers and is not usually used. You cannot define (Property based) Triggers or (data-bound value based) DataTriggers with this method.
For most practical purposes, you should be using Style.Triggers or DataTemplate.Triggers or ControlTemplate.Triggers. (Sorry for adding to the confusion).
Upvotes: 5