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 开发者_Python百科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,
Solve by doing the background binding on the WindowsFormsHost despite the parent panel.
精彩评论