I have a status message located on the first row of my grid and I want it to slide in and out when the visibility changes.
The first visibility trigger works great and slide
You should remove the Visibility
binding in your grid and use a DataTrigger
that binds to the StatusMessageVisibility
property. If you bind the grid's visibility then once it's collapsed it's collapsed and you won't be able to see the animation.
Also, instead of having two data triggers with EnterActions
, use a single data trigger that also has an ExitAction
for the collapsed state: