I have a WPF ( ICSharpCode.AvalonEdit.TextEditor) control in a Winforms project inside an ElementHost.
I confirmed using the debugger that TextEditor is actually set as a child of ElementHost, and all its properties are set correctly, it is simply invisible and cannot interact (as if you set the IsVisible property to false).
An ElementHost element appears and I can interact with it, but it is more likely that the Child control is not showing. I checked that the TextEditor Visiblity and IsVisible properties are the same as they should be.
I never wrote a WPF application, so try any suggestions, no matter how simple it can mean that my WPF control is invisible. This may be due to the ElementHost, the management itself, or the specific behavior of AvalonEdit.
Any suggestions?
source
share