For some reason focus a text box is need, so the focus is again set to the text box from its lost focus. This leads to stack over flow in the lost focus event.
Say, A Textbox and a button, now the focus is in Textbox and clicking on the button. In this case, need the focus to be in the textbox, so focus method of text box is invoked from its lost focus. This leads to stack over flow exception.
Why this happens and also how do the focus is retained in text box itself.
By handling PreviewKeyboardLostFocus of textbox, i have retained the Keyboard focus but how to retain the mouse focus in this?