leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
437 stars 132 forks source link

Drawer TabPages Aligned to bottom #327

Open devnull13 opened 2 years ago

devnull13 commented 2 years ago

Hello,

First of all congratulations on this amazing work. This is one of the best UI frameworks I've ever seen for Win Forms.

I'd like to have a Settings button on my drawer but to be located in the bottom of the drawer, separated from all other tabs and I would like to confirm if there is a way of accomplishing that. I suspect it is not possible because the drawer uses a TabControl which is not meant to have tabs aligned in different positions but if there is any workaround for it would be amazing Drawer .

valimaties commented 2 years ago

Hi. I was able to modify some code to add some predefined TabPage in the needed position, but I have an issue with icon position, because the icon position is hardcoded in preProcessIcons method, which cannot be called in OnResize method, because will slow down the repainting of all drawer and the form flickers very bad... I'll have to figure it out how to reposition the icon...

IconPositionIssue

valimaties commented 2 years ago

I'm sorry, I cannot find a good solution for how it is the drawer code written right now. The resize event generates a big flickering effect if preProcessIcons method is called every time. So my research will stop right here. Cheers!