leocb / MaterialSkin

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

Disable Drawer TabPages #251

Open valimaties opened 2 years ago

valimaties commented 2 years ago

I've tried disabling TabPages for Drawer, by this code, but it did not worked:

foreach (TabPage t in tabControl.TabPages)
{
    if (tabControl.SelectedTab != t)
    {
        ((Control)t).Enabled = enable;
    }
}

I need to disable drawer's animation, it must remain hidden when mouse over, and to disable click on each icon (page).