c# - How to get the Grid.Row Grid.Column from the selected added control? -
how grid.row grid.column added control?
basically have 16 grids 4 rows , 4 columns, each grid added round button.
how determine rows , columns selected round buttons located respectively in below mouseeventhandler of mouseover? mouseclick, there round button selected, mouseover, there collection of buttons.
roundbutton_mouseenter, roundbutton_mouseleave, roundbutton_mousedown, roundbutton_mouseup
thanks
you can use grid.getcolumn(frameworkelement element)
, grid.getrow(frameworkelement element)
find out row , column element has been set to. in xaml, grid.row="4"
sugar grid.setrow(element, 4)
Comments
Post a Comment