Aero glass look on WPF UserControl

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Yes, I can achieve Aero Glass on a window using DwmExtendFrameIntoClientArea.
But can we achieve the same on a UserControl?
 
Back
Top