I'm using an ElementHost to host a WPF custom control in a WinForms app. The control has a thick border which should be visible when the control has focus. The border is "outside" the control, i.e, has a negative margin.
The problem is that the focus border never shows up. If I add a border with padding containing my control to the ElementHost, it gets visible. However, I'd like to have the control inside the ElementHost as it is, so it doesn't break a layout which was made before using a stub. Any idea?
Thanks.