PictureBox pictureBox = null;
foreach (Control c in this.Controls["gbxMain"].Controls)
{
if (c.GetType().ToString().Contains("PictureBox"))
{
pictureBox = c as PictureBox;
if (pictureBox.ImageLocation == string.Empty)
{
return pictureBox;
}
}
}
刚才的是vf的控件集合,从中得到PictureBox,对其进行操作
但是我不知道wp7怎么获取控件集合,从中对button进行操作????
谢谢了
|
|