static private GetChildWidget ( Container toplevel, Type type ) : Widget | ||
toplevel | Container | |
type | Type | |
리턴 | Widget |
static Widget GetChildWidget (Container toplevel, Type type)
{
foreach (var child in ((Container) toplevel).Children) {
if (child.GetType () == type)
return child;
if (child is Container) {
var w = GetChildWidget ((Container) child, type);
if (w != null)
return w;
}
}
return null;
}