public void MoveInFrontOfOtherNode(FNode otherNode) { if (_container == null) { return; //we have no container } if (otherNode.container != _container) { return; //we don't share a container } _container.AddChildAtIndex(this, _container.GetChildIndex(otherNode) + 1); }