How does Chrome implement its tabs?

I am working on a small application that I can do either in WinForms or in WPF. I would like to play the a la Chrome tab control. However, I'm not sure how to get tabs on the window border, as Chrome does.

Any ideas? Thank.

+3
source share
3 answers

Set FormBorderStyle(WinForms) or WindowStyle(WPF) to None, then draw your own tabbed title bar on it.

To get glass, you need to use the DWM API .

Alternatively, you can process the message WM_NCPAINT.

+4
source

.

0

There is no window style in Chrome, the buttons are not standard either, so it looks like a tab in the window border.

System.Windows.Forms.Form form = ...

form.FormBorderStyle = FormBorderStyle.None
0
source

Source: https://habr.com/ru/post/1788562/


All Articles