Beispiel #1
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 #2
0
 internal override void RefreshRenderInfo(bool force)
 {
     base.RefreshRenderInfo(force);
     this.ColumnRenderInfo = new StaggeredRenderInfo(this.stackCount);
 }