The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I have found a problem with painting of the tab of a workbook with a singe page. When the TabBarSplitterControl has only one page it does not paint the tab when the window is invalidated.
You can easily reproduce the problem by modifying your "Workbook" Grid example. Simply make the workbook have only one tab by removing two of the pages in the call to this.tabBarSplitterControl1.Controls.AddRange on line 89 of your C# "Workbook" Grid sample. Then after you run the sample move some other application over the sample application form and see how the tab disappears. I have found that this happens only when you have a single tab. Is there a workaround to fix that?
Best regards,
Milen
ADAdministrator Syncfusion Team April 14, 2003 08:07 AM UTC
Hi Milen,
thanks for pointing this out. We'll get that fixed.
As a workaround add the following line in the forms constructor after calling InitializeComponent:
this.tabControl1.ActivePage = this.tabBarPage1;
(within Form.Load event handler should also be fine)
Stefan
ADAdministrator Syncfusion Team April 14, 2003 10:40 AM UTC
And add also the following handler:
this.tabControl1.Paint += new PaintEventHandler(tabControl1_Paint);
private void tabControl1_Paint(object sender, PaintEventArgs e)
{
this.tabControl1.Bar.TabBarChild.Dirty = true;
}
Stefan