Skip to content

Proposal: Remove restriction to only allow event triggers in FrameworkElement.Triggers collection #10048

Open
@SetTrend

Description

@SetTrend

Current Situation

Currently, property triggers are only available by takting the detour using the FrameworkElement.Style property and its Style.Triggers collection. Assigning a property trigger immediately to the FrameworkElement.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 the FrameworkElement.Triggers collection's feature set with the Style.Triggers feature set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement RequestedProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions