I created a control derived from HwndHost in a WPF application. The HwndHost derived control is inside a UserControl.
I would like to be able to set the background color of the window created inside the HwndHost (it's white by default, I'd like for it to be black). What is the simplest way to do that?
I was having the same problem changing the background color of an HwndHost as well and I found this on StackOverflow:
Registering a custom win32 window class from c#
I have modified it change the background color to black and it looks like this:
Then I used the the window that the CustomWindow creates and parent that in the HwndHost.