Example #1
0
 /// <summary>
 /// Gets the spacing between items. Not implemented for ListViewBase.
 /// </summary>
 /// <returns>The item spacing.</returns>
 public override float GetItemSpacing()
 {
     return(LayoutBridge.GetSpacing());
 }
Example #2
0
 /// <summary>
 /// Gets the size of the item.
 /// </summary>
 /// <returns>The item size.</returns>
 protected float GetItemSize()
 {
     return((IsHorizontal())
                         ? itemWidth + LayoutBridge.GetSpacing()
                         : itemHeight + LayoutBridge.GetSpacing());
 }
Example #3
0
 /// <summary>
 /// Gets the item position bottom.
 /// </summary>
 /// <returns>The item position bottom.</returns>
 /// <param name="index">Index.</param>
 protected virtual float GetItemPositionBottom(int index)
 {
     return(GetItemPosition(index) + GetItemSize() - LayoutBridge.GetSpacing() + LayoutBridge.GetMargin() - GetScrollSize());
 }