Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Sizing Behaviour (v2.1) (Read 2976 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Node Sizing Behaviour (v2.1)
Jan 21st, 2009 at 1:41pm
Print Post  
This relates to a previous post:
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=122666904...

Despite setting one of our UserControls to a height, Width, MinHeigh, MinWidth to 0 node resizing still does not work as it used to in the DLLs that were released around July 2008.  In the July version, the UIElement sizing would be overridden by its parent node.  With v2 the UIElement will only resize down to a certain point at which point clipping of the UIElement occurrs.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Sizing Behaviour (v2.1)
Reply #1 - Jan 21st, 2009 at 1:48pm
Print Post  
Isn't this the same behavior that you'd get from other WPF containers, e.g. if you add your control to a StackPanel of the same size as the node?
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Node Sizing Behaviour (v2.1)
Reply #2 - Jan 21st, 2009 at 4:11pm
Print Post  
No - if I place a copy of the control in a stack panel, the stack panel will force the size of the control without clipping
eg control in a stack panel 280x380 - changing the stackpanel to 180x280 will force a control resize.
The current node behaviour does not force the resize.

Our main angle here is that in July your controls worked 'better' than they do now - the fact that the current version more closely follows perhaps the preferred way of control design just means that Julys version was better in this functionality.
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Sizing Behaviour (v2.1)
Reply #3 - Jan 23rd, 2009 at 11:17am
Print Post  
Try this version:
https://mindfusion.eu/_beta/wpf_sizesync.zip

The AutoUpdateSize property is now called SizeSyncMode and its values can be set to the following:

- Arrange: This is the default, and what we believe the correct behavior. Resizing the node calls Arrange on the hosted element.

- SetSize: This should be how those July dlls you like so much worked 8) Resizing the node sets the hosted element's Width and Height properties. Let me know if it works well for you now.

- Measure: The node is resized automatically to match the element's DesiredSize.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint