/// <summary> /// Update record of the furthest item materialized. /// </summary> /// <param name="newItem">Item currently being materialized.</param> /// <returns>True if the value has changed and the layout would change.</returns> internal bool UpdateLastMaterializedItem(NSIndexPath newItem) { if (newItem.Compare(_lastMaterializedItem) > 0) { _lastMaterializedItem = newItem; return(Owner.ItemTemplateSelector != null);; } else { return(false); } }
/// <summary> /// Is item in the range of already-materialized items? /// </summary> private bool IsMaterialized(NSIndexPath itemPath) => itemPath.Compare(_lastMaterializedItem) <= 0;
public bool IsDatePickerPath(NSIndexPath maybePath) { return(_datePickerPath.Compare(maybePath) == (int)NSComparisonResult.Same); }
public bool IsAttachedTo(NSIndexPath maybeTarget) { return(_target.Compare(maybeTarget) == (int)NSComparisonResult.Same); }