Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Autosizing of UIElements with Layouts (Read 2506 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Autosizing of UIElements with Layouts
Jul 28th, 2008 at 1:52pm
Print Post  
Hi

Not sure if it's soething i've pranged in my code but was wondering if there are any known issues relating to, for example, adding standard WPF Labels set to a width of Double.NaN (to ensure they match the size of the contained text) and then making them part of a layout?  I have an error saying that
"Cannot call Arrange on a UIElement with infinite or NaN.  Parent of type Mindfusion.Diagraming.WPF invokes the UIElement.Arrange called on element of type Mindfusion.Diagraming.WFP.DiagramLink"


Many thanks


Paul
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Autosizing of UIElements with Layouts
Reply #1 - Jul 29th, 2008 at 1:59pm
Print Post  
Hi,

You could call Measure() and set the label's Width to DesiredWidth. We'll see if we can make the control do that automatically.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint