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