Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Combine with InkCanvas (Read 16206 times)
qomo-peter
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Nov 4th, 2011
Re: Combine with InkCanvas
Reply #15 - Jun 14th, 2012 at 12:57am
Print Post  
The "delay" I talked means there is distance between the cursor and the last point of stroke when drawing a long line quickly. As we know the whole stroke was redrawed on every point added, the amount of points may cause the delay. I am sure this not happened in my example.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Combine with InkCanvas
Reply #16 - Jun 15th, 2012 at 8:50am
Print Post  
I managed to see a noticeable delay after showing the alignment grid. If you are using the grid, you might try hiding it when drawing free lines.
  
Back to top
 
IP Logged
 
qomo-peter
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Nov 4th, 2011
Re: Combine with InkCanvas
Reply #17 - Jun 27th, 2012 at 2:13am
Print Post  
Thanks

Another question:
I notice that during creating a node in the diagram, first I need to click at a point ,then move the mouse to size the node.

I need to create a node within the diagram by click once. (Add a point ) But when I click the mouse, I found only StartCreate() method was called. So there is nothing created in the diagram.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Combine with InkCanvas
Reply #18 - Jun 27th, 2012 at 7:09am
Print Post  
You can create it from the Diagram.Clicked event handler. E.g. this code creates a node centered at the clicked point:

Code
Select All
private void OnDiagramClicked(object sender, DiagramEventArgs e)
{
	if (e.MouseButton == MouseButton.Left)
	{
		var rect = new Rect(e.MousePosition, new Size(0, 0));
		rect.Inflate(40, 30);
		diagram.Factory.CreateShapeNode(rect);
	}
} 



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