0
私は現在、Visual Studioにxamarinでiphoneアプリケーションを開発中です。私は初心者です。Xamarin.ios CollectionViewアイテムの削除と挿入
私はCollectionViewを使用しています。これは、リストを持っており、CollectionViewSource.csのIDの異なる8つの項目が含まれます。今、私はアイテムが押された場合、すべてのアイテムを削除し、それを補充、希望
ProductCategoryList.Add (new ProductCategorys() {Categoryid = 1, ProductCategoryName = "testname", ProductCategoryImage = UIImage.FromFile ("productcat/maincat/testpic.jpg")});
を。私が持っているProductCategoryCollectionDelegate.csで :
削除についてはPublic override Boolean ShouldSelectItem (UICollectionView collectionView, NSIndexPath indexPath)
と私はこれらの2つの方法
Public void DeleteItems (NSIndexPath [] indexPaths)
Public void InsertItems (NSIndexPath [] indexPaths)
を発見した挿入(xamarinドキュメントが非常に不足している)
どのように使用することができますリストを完全に空にして新しいアイテムを追加するための2つのメトード?私が代わりにCollectionView
のTableView
を撮影したヘルプ
HI Andreas、問題を解決しましたか?私は同じ問題で立ち往生しています。 – TheDeveloper