Reputation: 33
I am working on a small application, which I can do in either WinForms or WPF. I'd like to replicate the tab control a la Chrome. However, I am not sure how to get the tabs into the window border like Chrome does.
Any ideas? Thank you.
Upvotes: 3
Views: 2002
Reputation: 30875
Chrome does not have window style, the buttons are also not standard, that why this look like a tab in window border.
System.Windows.Forms.Form form = ...
form.FormBorderStyle = FormBorderStyle.None
Upvotes: 0
Reputation: 5190
Create a window without borders and draw your own border-like tabs.
Upvotes: 0
Reputation: 887937
Set the FormBorderStyle
(WinForms) or WindowStyle
(WPF) to None
, then draw your own titlebar with tabs on it.
To get glass, you need to use the DWM API.
Alternatively, you can handle the WM_NCPAINT
message.
Upvotes: 4