I have an application where all windows have a very custom look/feel. When the user has their theme set to Classic, or even set to certain default themes, the colors clash with my main app colors.
Seems like it should be easy to set a brush on the Frame portion of a Window in WPF but this appears to be missing from WPF.
I have searched around, but the only solutions have found involve making the main window transparent and manually creating the border and drawing the frame yourself and handling all the sizing/move options yourself. I got this to work just fine, however
I have a window on which I need to use INTEROP to show an HwndHost on a canvas.
HwndHost doesn't appear when being used on a Transparent window, so I simply cannot make the window Transparent without making my app useless.
I have tried setting the WindowStyle="None" and that gets me close, but shows an ugly thin frame around whatever I put on the window. I wish "None" really meant none.. Unfortunately, it doesn't.
Does anybody have any way to override the color of the main window frame without making it Transparent or setting the WindowStyle="None" ?
Please help me out with a code sample if you have a good solution for this?
Thanks a bunch,
View Complete Post