Ok, I've spent 2 days trying to work out how to do this and have so far achieved a score of 'FAIL'.
The design is this:
- A ViewModel class exposes a public ObservableCollection property called People.
- A XAML view is bound to this property
The desired behaviour is this:
- Add a new Person to the ViewModel's collection
- The View animates the background of the new record as it appears in the XamDataGrid, basically flashing it red for 2 seconds.
I've tried hooking the grid 's InitializeRecord into the RoutedEvent property of an EventTrigger, to no avail. (Invalid Event Name, so I assume this is not a RoutedEvent)
Also, as I'm trying to keep as MVVM as possible, I'd like to avoid any solution which requires code-behind changes. XAML only please.