Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Some questions (Read 3633 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Some questions
Apr 15th, 2011 at 3:53pm
Print Post  
Hello,

i really like the framework and after some experiments i have some questions. Here we go.

1. When i use "LinkShape = Cascading" and i connect two nodes with a straight link, then i can't modify the link from position of the head. I have to delete the link and create a new one to the new anchorpoint. When i change LinkShape, then it's no problem.

2. I use AutoSnapLinks. When i create / modify a link and the link snaps to an anchor i would like to display the new path of the link. Now the route of the link goes through a node and after the user released the mousebutton the link will be routed around the node. I would like to display the path before the user releases the mouse button.
I tried the following code, but that does not work properly. I can then create links not only at my anchorpoints.
Code
Select All
diagram.RoutingOptions.TriggerRerouting = RerouteLinks.whileCreating; 



3. I use the Overview control. When i use a margin, the overview has another vertical line at the right position (inside the control, outside the mini diagram).

4. I have a diagram inside a ScrollViewer. Is it possible to change the size of the diagram interactively. Like dragging the right border to increase/decrease width of the diagram?

5. During InplaceEdit mode i can't use del key to delete the selected text.

Thx for any help.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some questions
Reply #1 - Apr 18th, 2011 at 6:44am
Print Post  
1. Cascading links always have at least three points, but in this case the last two points coincide and the hit-testing code tries to move the middle control point. However it is aligned to both end points, respectively by x or y, and refuses to move. We’ll see if we can change the points’ hit-testing priority for the next release. For now you could offset the middle control point a bit when you detect that the newly created link is a straight line (three points in ControlPoints either on the same X or same Y). Alternatively check how AllowSplitLinks="True" works for you; it lets user insert or remove additional link segments, and here would add a segment and let the user move it away from the last point.

2. Try setting diagram.RoutingOptions.Anchoring = Anchoring.Keep or Reassign.

3. Are you assigning to the Overview.Margin property?

4. I suppose you could add two thin nodes to the right and bottom of the diagram, set their Constraints so that the user can move them respectively only horizontally and only vertically, and set HandlesStyle to MoveOnly. If you also enable AutoScroll and AutoResize the user will be able to move them outside the current diagram.Bounds. Now from NodeModified you can set the right or bottom position of diagram.Bounds to coincide with these nodes’ x or y positions. Alternatively you could add two WPF Thumb controls aligned with the diagram and handle their move events to resize the diagram.

5. Probably the diagram’s ApplicationCommands.Delete handler stops Del from reaching the textbox. We’ll try to pass it through for the next release.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: Some questions
Reply #2 - Apr 18th, 2011 at 10:47am
Print Post  
Hello Stoyan,

thank you for your advice.

1. I did some tests and i use now AllowSplitLinks, although it could be confusing for a user to add at first a segment and then to move the last point. If you can add the hit-testing priority for the next release, i would appreciate that.

2. Works very well for creating links:
Code
Select All
diagram.RoutingOptions.TriggerRerouting = RerouteLinks.WhileCreating | RerouteLinks.WhenModified;
diagram.RoutingOptions.Anchoring = Anchoring.Keep; 


Although, i missed a property like "RerouteLinks.WhileModifying".

3. Works great. I used diagram.Margin="10" and changed it now to diagram.Margin="0,10,0,10".

4. Thx, i will do that in a couple of days.

5. Sounds good.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some questions
Reply #3 - Apr 26th, 2011 at 8:36am
Print Post  
Hi, please try this build for 1 and 5:
https://mindfusion.eu/_beta/wpfdiagram252.zip
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: Some questions
Reply #4 - Apr 28th, 2011 at 3:35pm
Print Post  
Works both fine.

Do you have a date in mind when to release a new version?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Some questions
Reply #5 - Apr 28th, 2011 at 4:48pm
Print Post  
We are releasing it next week.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint