Hide the TabControl header

前端 未结 7 1891
自闭症患者
自闭症患者 2021-02-02 07:21

What\'s the programmatic way (ie not using styles as in this question, but using code) to hide the TabControl header? I\'ll be glad for a snippet.

相关标签:
7条回答
  • 2021-02-02 07:50
    private void TabItemControl_MouseEnter(object sender, MouseEventArgs e)
    {
        if (this.TabItemControl.IsSelected == false)
        {
            this.TabItemControl.Opacity = 100;
        }
    }
    
    private void TabItemControl_MouseLeave(object sender, MouseEventArgs e)
    {
        if (this.TabItemControl.IsSelected == false)
        {
            this.TabItemControl.Opacity = 0;
        }
    }
    
    private void TabAllControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        if (this.TabItemControl.IsSelected == false)
        {
            this.TabItemControl.Opacity = 0;
        }
    }
    
    0 讨论(0)
提交回复
热议问题