winformswpf-controlselementhost

Black background before loading a wpf controll when using ElementHost


I'm using WPF in WinForms with ElementHost. When the form loads, there is a flash of black background where the ElementHost is about to load. This looks kind of bad. Any suggestions on how to get rid of this?


Solution

  • Hide the element (Visibility = Hidden) until the WinForms control is fully loaded...