Hi All,
I am facing an issue in my WPF (MVVM) based appliation.
Issue is that i have a Text Box and a drop down , what ever value user enter's in the Text box we resolve it with Drop down and auto select the drop down with corresponding value.
and we do the resolution process on lost focus event of the TextBox and if value does not match we are showing a message box.
But when user enter's a wrong value in text box and focus is stll in text box and user hits on cancel button to cancel changes then as on cancel we are also showing a message box then two event get's fired as user clicked on cancel then lostfous of that textbox fired which eventualy trigerd resolution process and at the same time Cancel event got tigered now issue is that there is one message for value not getting resovled popping up from resolve method and one message from Cancel event for canceling change both message's comes togather .
Lost Focus event get's fired first.
Is there a way that we can know that which item has the latest focus (cancel button )from with in the resolve method of textbox?