numberOfSelectedRow renamed to selectedRowIndex
Check not type of framework element, but its' DataContext.
Clearer comment.
searchCategory renamed into searchCategoryFrameworkEle
Added regions and more comments.
Check what key was pressed before all other.
Get rid of FindUpVisualTree.
Regions added.
More comments added.