wpf_explain_triggers
Explain WPF element triggers and attribute property values to their source. Evaluates style and control template triggers against current state, showing condition matches and active triggers to diagnose why a trigger isn't firing.
Instructions
Explain an element's triggers and where a value comes from — for 'why doesn't this trigger fire?' and 'which style/setter set this value?'. Lists the element's Style triggers (walking BasedOn) AND its ControlTemplate triggers (where most visual-state triggers live, e.g. IsMouseOver/IsEnabled on a Button), each EVALUATED against the current state: the condition (property=expected), the property's CURRENT value, whether it matches, whether the trigger is active, and the setters it applies. This tells you a trigger isn't firing because its condition property currently holds a different value. Pass property_name to also attribute that property's effective value to its source: a specific style setter (which style, which setter) or an active trigger (which condition), or local/inherited/default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_name | No | ||
| element_handle | Yes |