Question

I have a windows form control inside wpf application using a windows forms host.

the windows forms control have a transparent background.

The WindowsFormsHost have the background color defined using a DynamicResource.

It's working fine, except when the dynamicresource is updated. Then the background color of the windows forms control stay the same.

My aim is to fix this. One way could be to catch an event which was telling me the dynamic ressource had change, but i couldn't find such event.

Any idea ?

Thanks a lot,

Was it helpful?

Solution

Solve by doing the background binding on the WindowsFormsHost despite the parent panel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top