I can easily add a little glow effect to a button using something like this:
<Button ...>
<Button.Effect>
<DropShadowEffect ... />
</Button.Effect>
</Button>
How can I apply the effect conditionally, based on a value in the ViewModel?
Basically I want the button to "glow" if a new document has been added in the last few days. I can supply the bool value indicating if the glow is required as a property of the ViewModel.
I was thinking of just creating two buttons attached to the same command, hiding one and showing the other based on the ViewModel. That would work, but it seems a bit brute forced.
Thoughts?
Thanks.
J