Example #1
0
        private static IList <ItemInfo> GetPlaceholderSlot(CompactLayout layout, int visibleLine)
        {
            var itemInfo = new ItemInfo();

            itemInfo.IsDisplayed = true;

            itemInfo.Item  = PlaceholderInfo.Empty;
            itemInfo.Level = 0;
            itemInfo.Id    = layout.TotalLineCount - 1;
            itemInfo.Slot  = itemInfo.Id;

            itemInfo.IsCollapsible    = false;
            itemInfo.IsCollapsed      = false;
            itemInfo.ItemType         = BaseLayout.GetItemType(itemInfo.Item);
            itemInfo.IsSummaryVisible = false;

            itemInfo.LayoutInfo = layout.GenerateLayoutInfo(itemInfo, null, visibleLine, visibleLine);

            return(new List <ItemInfo> {
                itemInfo
            });
        }