Grid oo =this.Content as Grid; UIElementCollection Childrens = oo.Children; foreach (UIElement ui in Childrens) { //ui转成控件 }