简体   繁体   中英

How can I style my application with no borders?

I've seen it here and there, recently on my Visual Studio updater:

在此处输入图片说明

Is that a predefined style to get that nice and sleek ui? I want the window with no border but still the close and minimize button.

Is that a window style of some sort?

In Winforms you could just set FormBoarderStyle to none so the Borders disappear.

In WPF you could set the WindowStyle="None" .

In both cases you could just implement your buttons yourself:

this.Close(); //Close
this.WindowState = FormWindowState.Minimized; //Minimize

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