나는 바보 같은 실수를 저질렀습니다. 그러나 해결할 수 없을 것입니다. Listbox 데이터 형식이 작동하지 않습니다.
이
는 XAML 코드 :<Border BorderBrush="Red" BorderThickness="3" Grid.Column="0" Grid.Row="0">
<toolKit:ListBoxDragDropTarget AllowDrop="True" >
<ListBox Height="85" Width="120">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="12233" Foreground="AliceBlue"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</toolKit:ListBoxDragDropTarget>
</Border>
그리고 스크린 샷입니다 : 당신은 데이터 바인딩 된 데이터에 영향을 미치는 DataTemplate
속성을 사용하고
ListBox에 ListBoxItem을 추가해야합니다. ListBox의 ItemTemplate을 정의했지만 ListBox에는 항목이 없습니다. – Jehof