Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Specified cast is invalid Xamarin Listview

$
0
0

I am using this link (https://canbilgin.wordpress.com/2018/03/17/re-order-listview-items-with-drag-drop-ii/) for drag and drop feature in Xamarin Forms Listview items. I'm getting the error "Specified cast is invalid" in this line _listAdapter = ((AWidget.IWrapperListAdapter)_listView.Adapter).WrappedAdapter;
The post author said

// NOTE: careful, the listAdapter might not always be an IWrapperListAdapter

What does it mean by "listAdapter ....not always be an IWrapperListAdapter"? How do I get rid of this?

Please provide me with any solution, thanks in advance


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>