How to get the Grid.Row Grid.Column from the selected added control?

Posted by younevertell on Stack Overflow See other posts from Stack Overflow or by younevertell
Published on 2010-04-28T03:24:19Z Indexed on 2010/04/28 3:33 UTC
Read the original article Hit count: 218

Filed under:
|
|
|

How to get the Grid.Row Grid.Column from the added control?

Basically I have 16 grids with 4 rows and 4 columns, each grid is added a round button.

how to determine which rows and columns the selected round buttons are located respectively in the below MouseEventHandler of mouseover? For mouseclick, there is only round button selected, but for mouseover, there would be a collection of buttons.

RoundButton_MouseEnter, RoundButton_MouseLeave, RoundButton_MouseDown, RoundButton_MouseUp

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf