Hi,
my problem is that I have a smal dialog whith some UltraLabel in a TabelLayoutPanel.
I want to set the UltraLabel to AutoSize = true but this resolves in a bad performance.
I added a Demo Version.
I this you have 3 Versions of my Dialog
1 whith UltraLabel.AutoSize = true and DockStyle= Fill
1 whith UltraLabel.AutoSize = false and DockStyle= Fill
1 whith UltraLabel.AutoSize = true and DockStyle= None
all the other things are the same (I only copyed the Dialog)
On the start Form you can open all this Dialogs and the Dialog (AutoSize = true and DockStyle= Fill) from a member so you see the constructor dose not cost much time.
If you try it you can see UltraLabel.AutoSize = false and DockStyle= Fill is much more performant than the other.
Any idea why this is so or a way to get AutoSize whithout losing performace?
Thanks
Wolfgang
Hi Wolfgang,
There's a very similar issue reported here: UltraLabel performance - Infragistics Community
It's not exactly the same situation you are in, but I beleive it's probably the same basic underlying issue and the workaround I posted there may help you, as well.
Hi Mike,
i have tested it and it brings me no performance. I added in the constructor after the InitializeComponent() Method call the CreateControl Method on all Label this brings no performance.
Or must I remove the Label from the desigenerfile and add them on runtime (this woud take away the power of the designer).