I tried binding the DataTriggerBehavior's Binding property to the Button's i:VisualStateHelper.Background attached property, but I got an exception:
System.ArgumentException: "Could not find binding source: either target or anchor must be an IStyledElement."
How to change the code?
I tried binding the DataTriggerBehavior's Binding property to the Button's i:VisualStateHelper.Background attached property, but I got an exception: System.ArgumentException: "Could not find binding source: either target or anchor must be an IStyledElement." How to change the code?