private void ExpandItem(PageViewItemSizeInfo item, int expand) { SizeF newSize = !this.layoutInfo.vertical ? new SizeF(item.currentSize.Width + (float)expand, item.layoutSize.Height) : new SizeF(item.layoutSize.Width, item.currentSize.Height + (float)expand); item.SetCurrentSize(newSize); item.SetLayoutSize(newSize); this.shrinkInfo.shrinkAmount -= (float)expand; }
private void ExpandItem(PageViewItemSizeInfo item, int expand) { SizeF expandSize; if (this.layoutInfo.vertical) { expandSize = new SizeF(item.layoutSize.Width, item.currentSize.Height + expand); } else { expandSize = new SizeF(item.currentSize.Width + expand, item.layoutSize.Height); } item.SetCurrentSize(expandSize); item.SetLayoutSize(expandSize); this.shrinkInfo.shrinkAmount -= expand; }