private void UpdateItemsList() { if (items == null) { items = new List <Item>(); } else { items.Clear(); } // First of all, get a collection of *all* content in this project: ContentRefAndHandle[] allContents = ContentLoader.GetAllContentReferences(); if (allContents == null || allContents.Length == 0) { return; } foreach (ContentRefAndHandle crh in allContents) { if (crh == null || !crh.IsFetched) { continue; } Item newItem = new Item() { content = crh, type = crh.Category, uiItem = null, }; items.Add(newItem); } }