Skip to content

[Feature] Custom StateTriggerBase to include an IsActive bool dependency propertyΒ #4428

@XAML-Knight

Description

@XAML-Knight

Describe the problem this feature would solve

A few of our triggers use their own IsActive Dependency Property, and so it seems like refactoring the bool property (as useful as it is) into the parent base class (StateTriggerBase) would be in order.

Describe the solution

StateTriggerBase would be the proud new parent of a bool IsActive dependency property (and potentially also an OnActiveChanged event), which would then be inherited by any subsequent child classes.

Describe alternatives you've considered

Repeatedly adding the same boilerplate IsActive dependency property code to each trigger that needs it is not sustainable.

Additional context & Screenshots

Take a look at #1460

Metadata

Metadata

Assignees

No one assigned

    Labels

    WinUI πŸ’ Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.feature request πŸ“¬A request for new changes to improve functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions