Proposal: Remove restriction to only allow event triggers in FrameworkElement.Triggers collection #10048
Labels
Enhancement Requested
Product code improvement that does NOT require public API changes/additions
Current Situation
Currently, property triggers are only available by takting the detour using the
FrameworkElement.Style
property and itsStyle.Triggers
collection. Assigning a property trigger immediately to theFrameworkElement.Triggers
collection raises an error.This restriction makes no sense and is a quirk that's repeatedly causing confusion and unneccessary ado.
Desired Situation
I propose to remove the current artificial restriction for the
FrameworkElement.Triggers
collection that's constraining it to only accept event triggers and to harmonize theFrameworkElement.Triggers
collection's feature set with theStyle.Triggers
feature set.The text was updated successfully, but these errors were encountered: