【发布时间】:2019-10-07 11:50:56
【问题描述】:
“Xamarin.Forms.ItemsView”的类型初始化程序引发异常。点击按钮后。
未处理的异常:
System.TypeInitializationException:“Xamarin.Forms.ItemsView”的类型初始化程序引发了异常。发生了
`<CarouselView>
<CarouselView.ItemsSource>
<x:Array Type="{x:Type View}">
<ContentView>
<Image Source="yuzon.jpg"/>
</ContentView>
<ContentView>
<Image Source="yuzyirmi.jpg"/>
</ContentView>
<ContentView>
<Image Source="yuzkirks.jpg" />
</ContentView>
<Image Source="yuzelli.jpg" />
<ContentView>
<Image Source="yuzaltmis.jpg" />
</ContentView>
<ContentView>
<Image Source="ikiyuzyirmi.jpg"/>
</ContentView>
<ContentView>
<Image Source="ikiyuzkirkC.jpg" />
</ContentView>
<ContentView>
<Image Source="ikiyuzyetmis.jpg" />
</ContentView>
<Image Source="ucyuz.jpg" />
<ContentView>
<Image Source="ucyuzF.jpg" />
</ContentView>
<ContentView>
<Image Source="ucyuzon.jpg" />
</ContentView>
<ContentView>
<Image Source="ucyuzotuz.jpg" />
</ContentView>
<ContentView>
<Image Source="ucyuzaltmis.jpg" />
</ContentView>
</x:Array>
</CarouselView.ItemsSource>
</CarouselView>`
【问题讨论】: