Beispiel #1
0
 public WrapLayout(IHierarchyAdapter adapter, double defaultItemLength, double defaultItemOppositeLength)
 {
     this.DefaultItemLength         = defaultItemLength;
     this.DefaultItemOppositeLength = defaultItemOppositeLength;
     this.hierarchyAdapter          = adapter;
     this.averageItemLength         = this.DefaultItemLength;
     this.LayoutStrategies.Add(new ItemsLayoutStrategy());
     this.groupHeadersTable = new IndexToValueTable <GroupInfo>();
 }
Beispiel #2
0
 public StaggeredLayout(IHierarchyAdapter adapter, double defaultItemLength, int stackCount)
     : base(adapter, defaultItemLength)
 {
     this.StackCount = stackCount;
     this.LayoutStrategies.Clear();
     this.LayoutStrategies.Add(new StaggeredItemsLayoutStrategy()
     {
         StackCount = this.StackCount
     });
     this.ColumnRenderInfo = new StaggeredRenderInfo(this.StackCount);
 }
Beispiel #3
0
        public CompactLayout(IHierarchyAdapter adapter, double defaultItemLength)
        {
            if (adapter == null)
            {
                throw new ArgumentNullException("adapter", "Adapter cannot be null.");
            }

            this.DefaultItemLength = defaultItemLength;

            this.hierarchyAdapter    = adapter;
            this.averageItemLength   = defaultItemLength;
            this.collapsedSlotsTable = new IndexToValueTable <bool>();
            this.groupHeadersTable   = new IndexToValueTable <GroupInfo>();

            this.LayoutStrategies.Add(new ItemsLayoutStrategy());
        }
Beispiel #4
0
 public StackedCompactLayout(IHierarchyAdapter adapter, double defaultItemLength, int stackCount)
     : base(adapter, defaultItemLength)
 {
     this.StackCount = stackCount;
 }
Beispiel #5
0
 public OutlineLayout(IHierarchyAdapter adapter, double defaultItemLength)
     : base(adapter, defaultItemLength)
 {
 }