internal override void ArrangeChild( IControl child, Rect rect, Size panelSize, Orientation orientation) { if (orientation == Orientation.Vertical) { rect = new Rect( rect.X - _crossAxisOffset, rect.Y - _pixelOffset, rect.Width, rect.Height); child.Arrange(rect); if (rect.Y >= _availableSpace.Height) { ++_canBeRemoved; } if (rect.Bottom >= _takenSpace) { _takenSpace = rect.Bottom; } AddToAverageItemSize(rect.Height); } else { rect = new Rect( rect.X - _pixelOffset, rect.Y - _crossAxisOffset, rect.Width, rect.Height); child.Arrange(rect); if (rect.X >= _availableSpace.Width) { ++_canBeRemoved; } if (rect.Right >= _takenSpace) { _takenSpace = rect.Right; } AddToAverageItemSize(rect.Width); } }
internal virtual void ArrangeChild( IControl child, Rect rect, Size panelSize) { child.Arrange(rect); }
internal virtual void ArrangeChild( IControl child, Rect rect, Size panelSize, Orientation orientation) { child.Arrange(rect); }
private void Render(IControl control) { var ctx = CreateDrawingContext(); control.Measure(Size.Infinity); control.Arrange(new Rect(control.DesiredSize)); ctx.Render(control); }
internal override void ArrangeChild( IControl child, Rect rect, Size panelSize, Orientation orientation) { if (orientation == Orientation.Vertical) { rect = new Rect(rect.X, rect.Y - _pixelOffset, rect.Width, rect.Height); child.Arrange(rect); if (rect.Y >= _availableSpace.Height) { ++_canBeRemoved; } if (rect.Bottom >= _takenSpace) { _takenSpace = rect.Bottom; } AddToAverageItemSize(rect.Height); } else { rect = new Rect(rect.X - _pixelOffset, rect.Y, rect.Width, rect.Height); child.Arrange(rect); if (rect.X >= _availableSpace.Width) { ++_canBeRemoved; } if (rect.Right >= _takenSpace) { _takenSpace = rect.Right; } AddToAverageItemSize(rect.Width); } }
public static void Arrange(this IControl control, int width, int height) { control.Arrange(new Size(width, height)); }