Does Grid have any convenient means to easily check which cells of the table should use xy coordinates? Those. I have xy coordinates from a mouse click, and I need to determine by which cell a Grid user clicked ... Can you please tell me if there is a Grid, or its columns, or columns, is there any special method for this?
- 2What for do you need it? Let the best cell content itself subscribe to a click, and adequately respond. - VladD
- Well, there will be a small toy. And you need to track the position of the hero in the game space (which is the Grid), you will need to check in which cell he will appear. So I thought, maybe Grida is some kind of method that would determine which cell the coordinates belong to. - shc345
- If on click, then read in MSDN about the event PreviewMouseDown. You can even ask Google for the keywords "WPF grid mouse mouse click", the mass of solutions even on 1 page. - madrabbit
- one@vvtvvtvvt: well, let the cells on the click and react, what prevents to do so? - VladD
|