Click here to Skip to main content
16,018,249 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to write a program that can draw custom cross lines. Each time a node is clicked a circle ( or any other shape ) can be displayed like this:

Example.png[^]

What I have tried:

I don't know how to do it!!Please help me.
Posted
Updated 2-Aug-22 19:21pm
v2
Comments
Afzaal Ahmad Zeeshan 2-Aug-22 8:47am    
You need to write some Maths to calculate when "two lines could intersect" and then draw a circle with a small at that point to highlight the cross-cutting.

Without code, there is hardly anything we can do.
Member 14904339 2-Aug-22 8:51am    
You can also use coding, there is no problem using the code.
But how to draw the number of customization lines and create events for each of the points?

1 solution

The WPF Canvas control is what you should be focusing on.

Shapes and basic drawing overview - WPF .NET Framework | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900