Jagged Corners on RibbonWindows

Ribbon for WPF Forum

Posted 16 years ago by Mike Strobel - Software Engineer, CDC Software
Version: 4.5.0477
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?


Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Mike,

We'll switch it so the clip is +1 of the TopLeft CornerRadius in the next build. Right now the clip is just hardcoded as 6 (with the default CornerRadius 5).

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.