By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

Aero glass look on WPF UserControl

P: n/a
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
Jun 4 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"Jiayin" <Ji****@discussions.microsoft.comwrote in message
news:BF**********************************@microsof t.com...
>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
Jun 4 '07 #2

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

"Henning Krause [MVP - Exchange]" wrote:
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

"Jiayin" <Ji****@discussions.microsoft.comwrote in message
news:BF**********************************@microsof t.com...
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

Jun 5 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.