Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with custom anchor points (Read 1351 times)
Bruno
YaBB Newbies
*
Offline


There's always one more
bug.

Posts: 4
Joined: Feb 12th, 2008
Problem with custom anchor points
Nov 23rd, 2009 at 2:57pm
Print Post  
Hi,
My application requires that the anchor points are displayed outside the node, with their name inside the node. I used to do that with Flowchart.NET Pro 5.0.2 with custom draw. I tried to reproduce this behavior with WpfDiagram, but I'm experimenting some problems.

First, the documentation and examples regarding the DrawAnchorPointEventArgs look incorrect (wrong members). This does not help !

Then, there seems to be an offset between the expected and the actual coordinates of the anchor point. As a test, I tried drawing rectangles at fixed coordinates (eg. 100,100) in the DrawAnchorPoint event handler using the DrawingContext, and get rectangles at 212,212 (roughly). Strange, isn't it ?

Can you please help me ?
Thanks in advance.
Bruno
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with custom anchor points
Reply #1 - Nov 23rd, 2009 at 3:44pm
Print Post  
A difference from the WinForms version is that the draw handlers should use coordinates local for the node. E.g. if the node is located at 112 and you draw locally at 100, the end result will appear at 212.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Bruno
YaBB Newbies
*
Offline


There's always one more
bug.

Posts: 4
Joined: Feb 12th, 2008
Re: Problem with custom anchor points
Reply #2 - Nov 23rd, 2009 at 4:22pm
Print Post  
Yes, that definitely helped.
Thanks a lot !
Bruno
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint