wpf - the selectionChanged is executed twice, why? -


i have wpf application use mvvm pattern. have datagrid , use mvvm light convert event commad event selectionchanged , pass parameter selectionchangedeventargs.

i have set selection mode extended, because select many rows in data grid.

when select 1 row, works fine, if use ctrl pr shift select many rows, event executed twice, first 1 has rows select, property addeditems of parameter has items selected , removeditems empty. how ever, in second execution addeditems empty , removeditems has items.

why if selecting items, not deselecting them?

after that, in data grid can see have correct items selected, in property of view model stores selecteditems empty, state not coherent.

the event commad 1 way mode.

thanks.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -