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.
Hello!
See attached project.
If you press "Hide" button - size of xpToolBar remain unchanged. Only after resizing form it collapses from two rows to one.
Best regards.
XPToolBarTest2_555.zip
ADAdministrator Syncfusion Team April 15, 2005 05:09 PM UTC
Hi Andrei,
The problem is that the Layout event only fires when the XPToolBar is resized, and not when BarItems are hidden or shown. This happens because BarItems are not actually controls, so the requirements for Control.Layout firing are not met. You can workaround this by adding this.xpToolBar1.Size = this.xpToolBar1.PreferredSize wherever you set the visibility of BarItems rather than doing it in the Layout event handler.
However, I see that the Layout event firing whenever a BarItem is shown or hidden is a reasonable expectation. Therefore, I have entered it as Feature Request #152.
Regards,
Gregory Austin
Syncfusion Inc.