Ejemplo n.º 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>();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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());
        }
Ejemplo n.º 4
0
 public StackedCompactLayout(IHierarchyAdapter adapter, double defaultItemLength, int stackCount)
     : base(adapter, defaultItemLength)
 {
     this.StackCount = stackCount;
 }
Ejemplo n.º 5
0
 public OutlineLayout(IHierarchyAdapter adapter, double defaultItemLength)
     : base(adapter, defaultItemLength)
 {
 }