c# - Determine GroupBox when event sender is GroupBox content -


i have groupbox content set canvas create (both) @ runtime. when onclick event called , sender = canvas how groupbox?

i trying vector drag+drop thing doing following not work.

visualtreehelper.getoffset(parent); 

i think not work because groupbox not parent of canvas, rather canvas content of groupbox.

groupbox1.content = canvas1; 

could point me in right direction?


Comments