Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am creating controls (say button) on a grid. I want to create a connecting line between controls. Say you you do Click on one button and click over another button. This should draw a line between these two buttons.

Can some one help me or give me some ideas on how to do this?

Thanks in advance!

What I have tried:

I searched every where in google i didn't get any useful solution
Posted
Updated 26-Dec-16 17:17pm

1 solution

You can accomplish this task by using wpf animations. You can create animations in wpf using storyboard and also you can control this animation and storyboard by code. refer below links to get started with wpf animations.

1. Animation using Storyboards in WPF[^]
2. [^]
3. wpf - Call a storyboard declared in xaml from c# - Stack Overflow[^]
4. c# - Programmatically creating a Storyboard in a WPF ControlTemplate - Stack Overflow[^]
5. c# - Creating Storyboard in code behind in WPF - Stack Overflow[^]
 
Share this answer
 
Comments
Mahesh Alappuzha 27-Dec-16 7:03am    
Thanks...

Do you have any code for reference ??

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