I am displaying a list of recently processed items in a Silverlight DataGrid. I really want to add a highlighting animation for newly added rows so that users would immediately notice that something did happen in the application.
How 开发者_Go百科can I trigger my Sotryboard so it is played when new item is added to the ObservableCollection backing the DataGrid?
Catch OnLoadingRow, OnLoadingRowDetails, OnLoadingRowGroup events, there you can prepare and style the actually loaded row. The eventargument is Row, type of DataGridRow, which is inherited from Control.
精彩评论