Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic The Diagram nested custom user controls (Read 1887 times)
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
The Diagram nested custom user controls
Mar 16th, 2020 at 1:40am
Print Post  
Hello, I want to put another control on the diagram in the ruler, but the realization function of the ruler is not available, such as: the ruler moves with the current mouse position, etc., how to solve this problem?
  

ruler1_001.png ( 24 KB | 114 Downloads )
ruler1_001.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3157
Joined: Oct 19th, 2005
Re: The Diagram nested custom user controls
Reply #1 - Mar 16th, 2020 at 6:31am
Print Post  
If you mean your custom control is on top of the ruler and blocks mouse messages, try setting the UIElement.IsHitTestVisible property to false.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: The Diagram nested custom user controls
Reply #2 - Mar 16th, 2020 at 7:25am
Print Post  
I want to replace the diagram in the ruler with my custom control, and all functions of the ruler are still possible
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3157
Joined: Oct 19th, 2005
Re: The Diagram nested custom user controls
Reply #3 - Mar 16th, 2020 at 8:14am
Print Post  
That's not supported at this time, the Ruler is designed to host a Diagram instance as a direct child. Maybe try creating a custom control that contains a Ruler child, or try inheriting custom control from Diagram / changing Diagram's template.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3157
Joined: Oct 19th, 2005
Re: The Diagram nested custom user controls
Reply #4 - Mar 16th, 2020 at 8:16am
Print Post  
it could also be possible to add your custom control to Ruler's template...
  
Back to top
 
IP Logged
 
D
Full Member
***
Offline


I Love MindFusion!

Posts: 158
Joined: Mar 16th, 2020
Re: The Diagram nested custom user controls
Reply #5 - Mar 17th, 2020 at 12:46pm
Print Post  
Thanks Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint