我有一个列表视图和select器的Xamarin表单页面。 在select器的变化的事件,我填充列表视图。 在Windows手机上,间歇性地,我得到这个exception:
System.Windows.LayoutCycleException: Layout cycle detected. Layout could not complete
听起来像是超时问题,因为在ItemSource
设置的项目数量。
我将显式设置ViewCell
的高度值和该视图单元格的Children
项,以便Windows Phone
不会尝试计算每个项目的高度
看到这个Xamarin论坛发布更多的信息: https : //forums.xamarin.com/discussion/41813/layout-cycle-detected-layout-could-not-complete-after-resetting-listview-itemssource