I am refactoring a Windows Forms application to scale properly with high DPI settings. This application uses DockPanelSuite library to dock some of its tools (DockArea.DockLeft
) and the main view area (DockArea.Document
).
My problem is that main view area tab strip width is often smaller than enclosed caption text width, as you can see here. Also, when form is scaled (because moved between screens with differed DPI settings) tab strip buttons are not scaled properly (see here).
I've tried modifying Font size using these properties:
dockPanel1.Theme.Skin.DockPaneStripSkin.TextFont
dockPanel1.Theme.Skin.AutoHideStripSkin.TextFont
But they do not scale the strip container, only the text inside it. What can I do to scale tab strip width and buttons in the correct way?