示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <summary>
 /// Is item in the range of already-materialized items?
 /// </summary>
 private bool IsMaterialized(NSIndexPath itemPath) => itemPath.Compare(_lastMaterializedItem) <= 0;
示例#3
0
 public bool IsDatePickerPath(NSIndexPath maybePath)
 {
     return(_datePickerPath.Compare(maybePath) == (int)NSComparisonResult.Same);
 }
示例#4
0
 public bool IsAttachedTo(NSIndexPath maybeTarget)
 {
     return(_target.Compare(maybeTarget) == (int)NSComparisonResult.Same);
 }