internal override void MeasureContainer(RadVirtualizingDataControlItem container) { if (this.orientationCache == Orientation.Vertical) { container.Width = this.owner.availableWidth; container.Measure(new Size(this.owner.availableWidth, double.PositiveInfinity)); } else { container.Height = this.owner.availableHeight; container.Measure(new Size(double.PositiveInfinity, this.owner.availableHeight)); } container.InvalidateCachedSize(); }
internal override void MeasureContainer(RadVirtualizingDataControlItem container) { switch (this.orientationCache) { case Orientation.Horizontal: container.Width = this.itemExtent; container.Measure(new Size(this.itemExtent, double.PositiveInfinity)); break; case Orientation.Vertical: container.Height = this.itemExtent; container.Measure(new Size(double.PositiveInfinity, this.itemExtent)); break; } container.InvalidateCachedSize(); }
internal override void MeasureContainer(RadVirtualizingDataControlItem container) { double availableWidth = this.owner.availableWidth; double availableHeight = this.owner.availableHeight; switch (this.orientationCache) { case Orientation.Horizontal: container.Measure(new Size(availableWidth, double.PositiveInfinity)); break; case Orientation.Vertical: container.Measure(new Size(double.PositiveInfinity, availableHeight)); break; } container.InvalidateCachedSize(); }