protected virtual Drawable Add(Drawable drawable) { if (drawable == null) { return(null); } drawable.changeParent(this); internalChildren.Add(drawable); Invalidate(); return(drawable); }
public virtual Drawable Add(Drawable drawable) { if (drawable == null) { return(null); } drawable.changeParent(this); children.Add(drawable); return(drawable); }
public void Add(Drawable3D drawable) { if (LoadState == LoadState.NotLoaded) { pendingChildren.Add(drawable); } else { if (drawable.IsLoaded) { Debug.Assert(drawable.Parent == null, "May not add a drawable to multiple containers."); drawable.Parent = this; drawable.Scene = Scene; } children.Add(drawable); } }
protected Drawable AddTopLevel(Drawable drawable) { drawable.ChangeParent(this); children.Add(drawable); return(drawable); }