This test is a follow up on Samantha's information (thank you) about how to interpret correctly " item currency ".
Plse read the issue : Datagrid : 'datagrid.CurrentItem' information disappears when focus outside datagrid [wpf: 9992]
The annexed file demonstrates :
- said discrepancy when the user tabs from outside the grid into the first cell of the grid (cell A).
- the discrepancy disappears when the user tabs into the second colum aside cell A.
Unzip annexed file
Start Visual Studio 2008 and adjust the reference to 'WPFToolkit.dll' (I used v3.5.40128.1) in the solution project
1.1. Tab once :
the 'Items.CurrentItem' textbox remains empty (strange) while the DOS window reports 'DataGrid.Items.CurrentItem: A' (correct)
the 'CurrentItem' textbox reports 'A' : correct
1.2. Tab once : the 'Items.CurrentItem' textbox now contains the correct information
conclusion : when tabbing into cell 'A', the information is not in sync in 'textbox : Items.CurrentItem'; otherwise it is
2.1. Tab all grid around, as well as the textboxes until cell A is framed again. The result is
the 'Items.CurrentItem' textbox and the DOS window report 'DataGrid.Items.CurrentItem: C'
the 'CurrentItem' textbox reports 'A'
2.2. Tab once to focus the cell next to A: all information is again correct
conclusion : when tabbing into cell 'A', the information is not in sync in both 'textbox : Items.CurrentItem' and MS-DOS console with respect to 'DataGrid.CurrentItem'; otherwise it is