开发者

Borderless window in WPF

I want to have Borderless window similar to开发者_Python百科 image I have attached; how can I do this ?

Thanks Ocean

Borderless window in WPF


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜