Hello,I'm thinking to use Infragistics2018.1 WinForms into my WinForm DotNet4.6 application, so I'm trying to compare the control's performance.I wrote a little tester to check the "loading time" for the same window: using DotNet 4.6 native's controls, and using Infragistics2018.1's themed form and controls.The window is "heavy" enaugh, because it has 3 tabs, a TableLayoutPanel for each tab, and a lot of labels and textboxes for each TableLayoutPanel.The first window uses ONLY DotNet4.6 controls; instead the second window uses ONLY Infragistics2018.1's labels,textbox,tabs,....Here is the problem: when I open the Framework's window, it opens always instantly. But when I try to open the Infragistic's window, it takes always 4-5 seconds.Both windows opens without any additional operation into FormLoad.I did my test in my Windows10 Professional 64bit, Intel I3, 16GB RAMIt seems that the Infragistics's controls performance go down drastically when I apply the theme to form and controls.There is a way to increase your controls performance using theme and WinFormManager for skin my application?I attach my tester project, written with VS2017.Thank you.TestInfragistics2018.1.zip
Hello Oscar,
I have been investigating into the sample project you sent, and I am able to reproduce the issue that you are seeing. After doing an initial profiling session, I am seeing that most of the performance hit here is related to the PerformLayout and ResumeLayout methods on the System.Windows.Forms.Control class, along with some performance in the constructor of the UltraTextEditor class as well.
I'm not sure there's much we can do about the System.Windows.Forms.Control class' method calls in this case, but I will be looking into the constructor of the UltraTextEditor a bit more in this case, and I hope to have more information for you soon.
Please let me know if you have any other questions or concerns on this matter.
Thank you Andrew, in the meantime, do you have some tips to increase the loading control's performance? For example, call a property o method of Infragistics's controls to delay some operation, or load the theme in a particolar time/way to speed up loading.
Thank you
I have been investigating into this issue a bit further, and I have found that the actual performance issues appear to be related to the fact that you have the AutoSize properties of your elements set to True. This in turn will call a base class's SyncToPreferredSize method, which will modify the Size of the controls, causing this issue. In order to prevent this, and being that you are currently setting the Size and Location of your UltraTextEditors and UltraLabels anyway, I would recommend setting AutoSize to false.
This appears to bring the performance of your sample project to a similar rate as the Microsoft controls. I have attached an updated version of your sample to demonstrate.
Please let me know if you have any other questions or concerns on this matter.7065.TestInfragistics2018.1.zip
Hi Andrew, in fact by setting AutoSize to false, the performance increases a lot. Unfortunately I can't apply it to all my forms, but it is the "heaviest" window in my project, and I'll try to set AutoSize to false in other forms to more controls I can.