This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18639|Reply: 0

[WPF] WPF allows forms not to display maximize, minimize, and close buttons

[Copy link]
Posted on 3/17/2016 11:48:49 AM | | | |


1. In WPF, if you don't want to maximize, minimize, and close the button of the form, you can set the form's properties panel
When setting ResizeMode=NoResize, the maximized minimization will not be displayed, only the close button



When ResizeMode=CanMinimize is set, the maximize button is disabled, but it is still displayed, and the buttons cannot be pressed, minimized, and closed to display normally

When you set WindowStyle=None, the maximize, minimize, and close buttons will not be displayed, and the surrounding border will not be present.






Previous:WPF TextBox allows the setting of multiple lines of text
Next:WinForm and WPF have issues with displaying the return value of DialogResult in a new window
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com