Pergunta

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,

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top