wpf - How to not lose element focus when click on element's adorner -


i have textbox associated adorner. when give textbox keyboard focus, , click adorner, removes textbox's keyboard focus (lostkeyboardfocus event). need textbox keep keyboard focus when click adorner (which blue box surrounding textbox.

i don't think can screenshot visual assets or snoop class hierarchy. don't know how rules work.

but is

grid

> mytextbox

adornerlayer

> resizeadorner { adornedelement = mytextbox }

where resizeadorner extends wpf adorner class.

one option i'm considering handling gotfocus event in resizeadorner, , manually focus()ing adorned element again.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -