Beispiel #1
0
 internal override int IndexFromContainerInner(DependencyObject container)
 {
     if (NativePanel != null)
     {
         var nativeContainer = (container as SelectorItem)?.FindFirstParent <ListViewBaseInternalContainer>();
         if (nativeContainer == null)
         {
             return(-1);
         }
         var indexPath = NativePanel.IndexPathForCell(nativeContainer);
         if (indexPath != null)
         {
             return(GetIndexFromIndexPath(indexPath.ToIndexPath()));
         }
     }
     return(base.IndexFromContainerInner(container));
 }