简体   繁体   中英

WinUI 3 rounded main window

How to make main window with rounded corners? I had a look on many videos and steps are quite simple.

  • check SDK installed enter image description here
  • create project c# Windows WinUI
  • run app - after that a MainWindow appears with rounded corners.

But when project created by me the Mainwindow without rounded corners. enter image description here

Maybe I have to update windows up to 11?

Maybe I have to update windows up to 11?

Yes, correct.

Only on Windows 11 , the system automatically rounds top-level window corners for most apps as explained in the docs .

The APIs that apply rounded corners are not present in Windows 10 and earlier versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM