1
와 함께 사용할 때 내가 된 UserControls 내 뷰 모델에 작성 해요 WrapPanel이 포장되지 WrapPanel :ItemControl
<WrapPanel Width="250" Orientation="Horizontal" Margin="3">
<ItemsControl ItemsSource="{Binding PlaceableObjectsContent}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type local:PlaceableObjectViewModel}">
<local:PlaceableObjectUserControl>
<local:PlaceableObjectUserControl.InputBindings>
<MouseBinding MouseAction="LeftClick"
Command="{Binding DataContext.OnPlaceableObjectClicked, RelativeSource={RelativeSource AncestorType=ItemsControl}}"
CommandParameter="{Binding}"/>
</local:PlaceableObjectUserControl.InputBindings>
</local:PlaceableObjectUserControl>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</WrapPanel>
내가 그들을 무작위 통제와 manuell 작성 모든 것이 잘 작동을! ItemTemplate을 사용하기 때문에 이미 문제에 대해 읽었습니다! 사실이라면 어떻게 관리 할 수 있습니까?
감사
당신에게 사람! 고맙습니다! 지금 나는 볼 수있다, 나의 질문은 창피했다! 하하 – kuemme01