For Each g As Object In selectionDataGrid.SelectedItems g = g 'g = nothing Next
' there was a change done to the selected graphics ' I want to show the user that the change was completed by changing ' the row color and de-selecting the graphic For Each g As Graphic In selectionDataGrid.SelectedGraphics Dim row As DataGridRow ' = get datagrid row for g row.Background = New SolidColorBrush(System.Windows.Media.Colors.Yellow) Next For Each g In selectionDataGrid.GraphicsLayer.Graphics If g.Selected = True Then g.UnSelect() End If Next