The corners radius and many other default settings of the RadRibbonWindow
chrome depend on the WindowsChrome
. The WindowsChrome
calculate these values accordingly to the current Windows theme, aero effect and other system factors. And that is why there is no property for setting the CornerRadius of the Window. However by customizing the RadRibbonWindow
style and properties, you can achieve the effect show on your screenshot.
Please follow these steps:
- first we need to set the RadRibbonWindow AllowsTransparency
="True" and WindowsStyle
="None". This will make the window transparent in order to allow the implementation of the glow/shadow effect.
- next we need to add a border to which we apply the desired glow/shadow color. We add the border at the beginning of the RadRibbonWindow ControlTemplate
, like this :
- add a margin to the newly added border - this way we will push the Content away from the transparent rounded corners and the window will look with right angles.
- we also need to remove the CornerRadius from <Border x:Name="outerBorder".
I modified the project used in the forum you mentioned and attached it for your convenience. I hope this information helps. Please let us know if it works for you.
the Telerik team