Your account has not been activated. Click here to get a new activation Email.
Unfortunately, activation email could not send to your email. Please try again.

Height/Width="Auto" causes an exception

Thread ID:





91217 Nov 9,2009 06:23 PM Apr 16,2010 06:27 AM WPF 4
Tags: EditControl
Jonathan Kallay
Asked On November 9, 2009 06:23 PM

I want to use a series of text editors in a stack panel. The effect I'm looking for is as if there were one syntax-highlighting text-editor, but with distinct sections. Each editor should therefore have a height equal to the length of existing text, and should expand as the amount of text increases. Conceptually, this is accomplished by setting the EditControl's height to Auto. However, this causes the following exception:

Layout measurement override of element 'Syncfusion.Windows.Edit.EditPresenter' should not return PositiveInfinity as its DesiredSize, even if Infinity is passed in as available size.

It looks like the edit control is unable to determine what size it needs to show its contents.

Poorani Idhaya Bala M.A [Syncfusion]
Replied On November 11, 2009 01:30 AM


Thanks for choosing Syncfusion Products.

Sorry for the inconvenience caused.We are able to reproduce this issue. We really appreciate you to bringing this issue to our attention.

We have filed a bug report about this issue and the fix for this issue will be available in the future releases.

As a work around ,you can achieve your requirement. Please set the height of the edit control at runtime.

Please find the attached sample for more information.

Let me know if you have any questions.


Jonathan Kallay
Replied On December 1, 2009 03:18 PM

Thanks for logging this issue in your defect tracking system. I want to make sure to point out, though, that the solution you proposed is not really a workaround. A workaround in my book is a way to handle a problem without addressing the root cause. My problem here is not the exception that gets thrown; it's that I want to have the edit control take up exactly the amount of space necessary to show its contents. Your example doesn't solve this issue.

Poorani Idhaya Bala M.A [Syncfusion]
Replied On December 7, 2009 04:35 AM


Thanks for choosing Syncfusion products.

Sorry for the delaying update. I am working on your requirement. Once i have completed this, i will let you know.


Administrator [Syncfusion]
Replied On April 16, 2010 06:27 AM

Hi Jonathan,

Sorry for the delay in getting back to you on this issue. We have fixed this issue in our latest release ( Kindly upgrade to the latest version to continue using these fixes. The download information about Essential Studio 2010 Volume 2 release has been mentioned in the following forum.

Please let us know if you have any queries.

Thanks for your interests in Syncfusion products.

Athaur Rahman GS


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.