Can anyone help me animating the WPF DataGrid row details when it\'s opened and closed (e.g. slides open like an accordion when the row selected and slides close when the ro
Verbose but works:
Edit: By taking care of the DetailsVisibility manually in the RowStyle the return animation now works too.
Note that the DataGrid's height does not shrink back once the details are collapsed, which might be a bit problematic. This is a known problem of the VirtualizingStackPanel, if you can afford it you could change the DataGrid.ItemsPanel to a normal StackPanel (If you have a lot of data this will greatly slow down the application since every row will be created right away, even if not visible).
Also: Pressing Ctrl + A is great fun.