There is an unfortunate issue with non-layered windows in that rounded corners are jagged due to using bitmask transparency. Thus, if you specify a non-zero CornerRadius on a RibbonWindow, you get an annoying little black pixel at the outermost point of each corner. My own experiences have shown that the window appearance can be improved if you increase the corner radius applied to the Win32 window by 1 pixel. For example, if a RibbonWindow is given a CornerRadius of "3,3,3,3", then the WPF border should be rendered with a CornerRadius of "3,3,3,3", but the Win32 window should be given a radius of "4,4,4,4".
While this might result in some of WPF's edge smoothing being lost, I find the results to be less objectionable than the black window matting sticking out from behind the WPF content. Particularly with light-colored window chrome, that black pixel sticks out like a sore thumb.
Perhaps you could give it a try and see what you think?
Cheers,
Mike
While this might result in some of WPF's edge smoothing being lost, I find the results to be less objectionable than the black window matting sticking out from behind the WPF content. Particularly with light-colored window chrome, that black pixel sticks out like a sore thumb.
Perhaps you could give it a try and see what you think?
Cheers,
Mike