Aero glass look on WPF UserControl

G

Guest

I am now trying to host a WPF control into a MFC application and get the Aero
glass look on the WPF control. (Something like what Office2007 is doing to
its ribbon)

What should be the container of the WPF control so that I can get Aero Glass
look?
I tried with a System.Windows.Window, I got the Aero Glass look. But it
seems that a Window must be the root element and can not be hosted in the MFC
window.
I also tried to use a System.Windows.Control.UserControl, but I didn't
achieve Aero Glass look on it.

Did I miss out anything? Is it possible (and How) to achieve Aero Glass on
an UserControl? If not, What control?/window? should I use?

Thanks
 
H

Henning Krause [MVP - Exchange]

Hello,

I think the only way to get the glass style into your own window is to
interop into Win32 and call the DWM methods directly (e.g.
DwmExtendFrameIntoClientArea).

Best regards,
Henning Krause
 
G

Guest

Yes, I can achieve Aero Glass on a window using DwmExtendFrameIntoClientArea.
But can we achieve the same on a UserControl?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top