<Grid>
<ItemsControl ItemsSource="{Binding ScreenViewModelCollection}">
<ItemsControl.Resources>
<DataTemplate x:Key="SomeKey" TargetType="{x:Type local:RedScreenObject}">
<local:RedScreenObject/>
</DataTemplate>
</ItemsControl.Resources>
</ItemsControl>
</Grid>
TargetType プロパティが表示されない理由がわかりません。Resources または ItemTemplate の下にある必要がありますか? 私は両方を試しましたが、どちらの方法でも見つかりません。
編集:より多くの反対票に爆破されるためには、これを参照していました: https://chat.stackoverflow.com/transcript/message/4295316#4295316