int fieldNum = FieldGrid.Children.Count-1; //节点个数 for (int i = fieldNum; i >= 0; i--) { FieldGrid.Children.RemoveAt(i); }