I am trying to make the corners of a Window (WPF) rounded and it doesn't work, I tried to make the window itself transparent and add an internal border with rounded corners and it doesn't work.
Any ideas?
To create a rounded corner, we use the CSS border-radius property. This property is used to set the border-radius of element.
you need to set WindowStyle to WindowStyle.None, which will remove the chrome, then you can allow transparency which is an attribute int the Window element, and set the background color to transparent. All of this can be done as attributes to the window tag.
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
To make the corners rounded, use a border and set the cornerRadius property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With