c# - wpf how to find a canvas inside a grid in a specific Row/column -


i have grid divided several rows/columns, how can canvas that's inside grid in (x,y) example how can canvas inside row 2 column 1 ?

thanks lot

there can multiple elements in "cell", there no nice way this, use query this:

int x = 0; int y = 1; var target = (from uielement c in grid.children          grid.getrow(c) == y && grid.getcolumn(c) == x          select c).first(); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -