/// <summary> /// Initializes a new instance of the <see cref="SmoothPanelMeasurer"/> class. /// </summary> /// <param name="panel">The panel.</param> /// <param name="availableSize">The available size.</param> public SmoothPanelMeasurer(SmoothPanel panel, Size availableSize) { _panel = panel; _children = panel._children; _items = _children.GetItems(); _keepFirstItem = FirstItemIndex >= 0; _lastItemIndex = -1; _availableSize = availableSize; }
/// <summary> /// Initializes a new instance of the <see cref="SmoothPanelChildren"/> class. /// </summary> /// <param name="panel">The panel.</param> public SmoothPanelChildren(SmoothPanel panel) { _panel = panel; }