How to change HwndSource RootVisual

180 Views Asked by At

I have a HwndSource and I have two WPF user controls, I would like to set one of them the RootVisual of this HwndSource and sometimes switch between these two WPF user controls.

Just wonder am I able to do that?

My two WPF user controls are: m_media, m_stored,

First time I just new the HwndSource object and use HwndSource.RootVisual = m_media to set the root visual, then I want to change its root visual to m_stored, can anybody tell me how to do that?

Thank you very much everybody.

0

There are 0 best solutions below