Page Index Toggle Pages: 1 ... 3 4 [5]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Operations in the diagram (Read 31453 times)
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #60 - Mar 27th, 2020 at 4:22pm
Print Post  
Thank you very much, Lyubo Smiley
  
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #61 - Mar 27th, 2020 at 4:38pm
Print Post  
I would like to ask how can I change the picture to be displayed in the center of the diagram as soon as I open it? Smiley

As the scroll bar becomes larger, the picture cannot be dragged. I don't want the drag of the image to be limited by the scroll bar, and I want to delete the scroll bar. How do I make changes? Smiley
  

3_28.png (Attachment deleted)
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #62 - Mar 27th, 2020 at 4:42pm
Print Post  
Added:
  

3_28_1.png (Attachment deleted)
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #63 - Mar 28th, 2020 at 11:17am
Print Post  
Hello, I have been waiting for your answers. Smiley
  
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #64 - Mar 29th, 2020 at 9:06am
Print Post  
I would like to move the imageNode from (0,0) coordinates to (-50, -50) coordinates. Of course, the overlayNode will also follow the imageNode. What changes do I need to make? Smiley
  

3_28_2.png (Attachment deleted)
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #65 - Mar 29th, 2020 at 9:06am
Print Post  
What is the default coordinate unit of the diagram? I want to change the coordinate units of the diagram. How to modify it? After the modification, do I need to perform some related operations on the ruler to complete the entire coordinate change? Smiley
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Operations in the diagram
Reply #66 - Mar 30th, 2020 at 5:51am
Print Post  
Hello,

We asked you before, and now I ask you again, please post separate forum threads for different questions.

D wrote on Mar 27th, 2020 at 4:38pm:
I would like to ask how can I change the picture to be displayed in the center of the diagram as soon as I open it? Smiley


Call this in your Window Loaded handler:
Code
Select All
imageNode.Bounds = new Rect(diagram.Bounds.Width / 2 - imageNode.Bounds.Width / 2, diagram.Bounds.Height / 2 - imageNode.Bounds.Height / 2, imageNode.Bounds.Width, imageNode.Bounds.Height); 



To make the diagram bounds as large as the viewport, use the following code. In addition to that, you may want to handle the Ruler SizeChanged event to readjust the bounds in case the window or the parent of the diagram are resized.
Code
Select All
diagram.AutoResize = AutoResize.None;
diagram.Bounds = new Rect(0, 0, diagram.Viewport.Width, diagram.Viewport.Height); 



D wrote on Mar 29th, 2020 at 9:06am:
I would like to move the imageNode from (0,0) coordinates to (-50, -50) coordinates. Of course, the overlayNode will also follow the imageNode. What changes do I need to make? Smiley


To control any aspect of a ShapeNode location or size, modify its Bounds. In your case, set it to a Rect with the new location at -50, -50.

D wrote on Mar 29th, 2020 at 9:06am:
What is the default coordinate unit of the diagram? I want to change the coordinate units of the diagram. How to modify it? After the modification, do I need to perform some related operations on the ruler to complete the entire coordinate change? Smiley


You can set the diagram measure unit via the Diagram.MeasureUnit property and the ruler unit via the Ruler.Unit property.

Regards,
Lyubo
MindFusion
  
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: Operations in the diagram
Reply #67 - Mar 30th, 2020 at 7:06am
Print Post  
Thanks a lot, Lyubo Smiley

I followed all the knowledge points you told me and followed them.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 
Send TopicPrint