Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmoothPanelChildren"/> class.
 /// </summary>
 /// <param name="panel">The panel.</param>
 public SmoothPanelChildren(SmoothPanel panel)
 {
     _panel = panel;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmoothPanelChildren"/> class.
 /// </summary>
 /// <param name="panel">The panel.</param>
 public SmoothPanelChildren(SmoothPanel panel)
 {
     _panel = panel;
 }