private double GetHeight() { double result = 0; if (ChildNodes != null && ChildNodes.Count > 1) { result = ChildNodes[ChildNodes.Count - 1].Location.Y - ChildNodes[0].Location.Y; } return result; } }