Click here to Skip to main content
15,114,611 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am designing a new application in WPF in which i want to get near-by controls as reference point. But i don't know how to identify controls located near-by. Can anyone help me in solving this issue.

Thanks in advance.
Posted
Comments
   
Can you post your questions clearly
   
First define "near-by" and your problem will resolved but itself.
--SA
CLingam 7-Aug-12 0:50am
   
I think i have not clearly explained my question. Let me explain it in detail.
I am Creating Controls dynamically in Screen. If i place a button in Screen then it should highlight and show the distance between closest Button which is located near to the newly placed Button

I solved the issue using the solution provided in the following link

http://stackoverflow.com/questions/11839621/find-the-nearest-control-in-wpf[^]
   
   
Comments
CLingam 7-Aug-12 0:49am
   
I think i have not clearly explained my question. Let me explain it in detail.
I am Creating Controls dynamically in Screen. If i place a button in Screen then it should highlight and show the distance between closest Button which is located near to the newly placed Button

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