Esempio n. 1
0
            private void InitializeCore(NodePool <T, K> pool, MeasureContext previousContext)
            {
                this.Index             = pool.layout.IndexFromPhysicalOffset(this.Offset + previousContext.GeneratedLength);
                this.FirstVisibleIndex = Math.Max(previousContext.LastVisibleIndex - 1, Math.Min(pool.layout.VisibleLineCount, (int)this.Index));
                this.LastVisibleIndex  = this.FirstVisibleIndex;
                this.MaxLength         = previousContext.MaxLength;

                this.ForwardGeneratedLength  = previousContext.ForwardGeneratedLength;
                this.BackwardGeneratedLength = previousContext.BackwardGeneratedLength;
            }
Esempio n. 2
0
 public void InitializeForVerticalMeasure(NodePool <T, K> pool, RadSize size)
 {
     this.AvailableLength = Math.Floor(GridModel.DoubleArithmetics.Ceiling(size.Height));
     this.InitializeCore(pool);
 }
Esempio n. 3
0
 private void InitializeCore(NodePool <T, K> pool)
 {
     this.Index             = pool.layout.IndexFromPhysicalOffset(this.Offset);
     this.FirstVisibleIndex = Math.Max(0, Math.Min(pool.layout.VisibleLineCount, (int)this.Index));
     this.LastVisibleIndex  = this.FirstVisibleIndex;
 }
Esempio n. 4
0
 public void InitializeForHorizontalMeasure(NodePool <T, K> pool, RadSize size)
 {
     this.AvailableLength = Math.Floor(GridModel.DoubleArithmetics.Ceiling(size.Width));
     this.isHorizontal    = true;
     this.InitializeCore(pool);
 }