Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
920
Performace Problem using Infragistics.Win.Misc.UltraLabel
posted

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

AutoSize.zip
Parents
No Data
Reply
  • 48586
    posted

    Hello Wolfgang,

     

    AutoSize means that control is automatically resized to display the entire content. DockStyle = Fill mean that control borders are docked to its parent control and determines how a control is resized within the parent. When you set AutoSize = true and DockSile = Fill, then control first calculate how should be the sized  based of its content, resize itself , then control get resized again to fit its parent container, because of the  DockStyle property.

     

    Let me know if you have any further questions.

Children