Borderless window in WPF
I want to have Borderless window similar to开发者_Python百科 image I have attached; how can I do this ?
Thanks Ocean
You can get rid of the default chrome by making the window transparent and windowStyle to None, and need to provide styled buttons instead of the regular buttons on the top-right
<Window WindowStyle="None" AllowsTransparency="True" Background="Transparent"
If you want to avoid issues like windows covering the taskbar when maximized, etc. use the Microsoft WPF Shell Integration Library
I also have some code that I wrote a little bit ago which I THINK covers all the basic windowing problems, from snapping, to unsnapping, maximizing on proper monitor, not covering task bar, etc. Take a look at it.
WPF Borderless Window issues: Aero Snap & Maximizing
精彩评论