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
Post a Comment