📜  xamarin 表单查找元素的 grid.row 属性 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:50.687000             🧑  作者: Mango

代码示例1
var button = (Button)sender;
var row = Grid.GetRow(button);
var grid = button.Parent as Grid;
//assuming the image is in column 1
var image = grid.Children.Where(c => Grid.GetRow(c) == row && Grid.GetColumn(c)==1);