private bool IsItemEmpty(int hvo, int fragId) { // If it's not the kind of vector we know how to deal with, safest to assume the item // is not empty. MainCallerDisplayCommand command; if (!m_viewConstructor.CanGetMainCallerDisplayCommand(fragId, out command)) { return(false); } string layoutName; XmlNode node = command.GetNodeForChild(out layoutName, fragId, m_viewConstructor, hvo); var keys = XmlViewsUtils.ChildKeys(m_cache, m_sda, node, hvo, Layouts, command.Caller, m_stringTable, m_viewConstructor.WsForce); return(AreAllKeysEmpty(keys)); }