0
<ListView ItemsSource="{Binding PageViewModel.TestCollection, Mode=OneWay}">
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:TestClass">
<TextBlock >Blah</TextBlock>
</DataTemplate>
</ListView.ItemTemplate>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<CarouselPanel />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
</ListView>
このコントロールを試してみてください。これは、構築したが、デプロイ時にApp.g.i.csで、この時にハング:UWPスロー例外のCarouselPanel
#if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException += (sender, e) =>
{
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
};
私は、コレクションのいくつかのタイプを試してみましたが、同じエラーを取得しました。あなたは例外のMessage
を見れば
Visual StudioがUnhandledExceptionハンドラでブレークすると、 'e '部分のマウスを'(sender、e) '部分に置いて、発生する例外を正確に見ることができます。それを行い、この例外に関する詳細を投稿してください。 –