Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic New Migration from July DLLs (Read 4552 times)
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
New Migration from July DLLs
Nov 14th, 2008 at 1:24pm
Print Post  
Hi there

We're trying to migrate from the above to the most recent DLLs posted on here (28/10/2008) but are having some sizing issues. Previously our UIElements, being placed directly on the Diagram surface sized as you modify the size of their node (even when the size of the usercontrol in the controls xaml was set to 300x300 for example). Now it would seem that sizing the node has no effect on the size of the contained UIElement, unless the UIElement is set to Auto, which will then use as much space as it needs - then the node clips the UIElement. Is this change intentional?
There also seems to be other changes, such as the handle styles changing (code remaind unchanged but the the handles on the diagram changes from the solid hatch border, back to the default square on each corner and one in the middle) and the fact that WPFPoint has been removed from the MeasureUnit Enum, breaking backward compaitibility with code that required this to be set.
The previous functionality we had was excellent and did what we wanted... this seems like a step back slightly.
« Last Edit: Nov 24th, 2008 at 11:38am by Paul Eden »  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New Migration from July DLLs
Reply #1 - Nov 14th, 2008 at 3:39pm
Print Post  
Hi,

WPFPoint has been renamed to WpfPoint. You can set the adapter's HandlesStyle to whatever value you'd like it to have. Regarding sizing, make sure the UserControl does not specify Width and Height values. If it does, they will now take precedence over the node size. Use the default (auto) width and height, and resizing the node will also resize the control.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: New Migration from July DLLs
Reply #2 - Nov 16th, 2008 at 11:18pm
Print Post  
with regards to the handles, we did have it set.  on compiling with the new DLLS the same setting had different results.

I will experiment with the sizing - we did try setting the control to a fixed size, but the node had a tendancy to clip the content if you reduced the node past a certain point.

Thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New Migration from July DLLs
Reply #3 - Nov 17th, 2008 at 11:29am
Print Post  
Regarding the handles, what's broken is that the default property - AdapterHandlesStyle - is no longer considered. We'll post a fixed version here soon.

You should *not* set fixed width and height for a user control. This will indeed clip it if the node is smaller, but that's what WPF layout panels would do with it as well. Do not specify Width, Height, MinWidth or MinHeight values, and the control will resize correctly with its containing node.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: New Migration from July DLLs
Reply #4 - Nov 30th, 2008 at 7:40pm
Print Post  
Hi Stoyan

Has the verion with this fix been released yet?


Many thanks


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: New Migration from July DLLs
Reply #5 - Dec 1st, 2008 at 2:32pm
Print Post  
Hi Paul,

This version should have the fix:
https://mindfusion.eu/_temp/wpfdiag_pdf.zip

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