I am trying to select/deselect XamComboEditor item upon mouse hover and by pressing Space key.
Requirement :
1) Hover mouse pointer on XamcomboEditor item
2) Pressing Space key should select/deselect that particular item
3) I want to select multiple items in the above mentioned way
Hello Bindu Doradla,
I have taken a look at the requirements you have and what you could do is to handle the XamComboEditor's PreviewKeyDown event and the MouseEnter and MouseLeave events for ComboEditorItemControl style.
Please take a look at the attached sample and let me know if you have any questions on this matter.
Hi Martin,
It is working fine as per my requirements.
I want to improvize the same by adding few more requirements.
Is there any way to select/deselect an item either on mouse hover event or keyboard up/down keys ? I am able to do both the things seperately but I dont find a way to club mouse and keyboard events together so that when mouse is hovered on one item and key up/down is pressed to focus another item, it should consider the latest focused item and select/deselect that one by pressing Space key and viceversa.
Thanks,
Bindu