このコードでは、データテンプレート内のキャンバスに残しておくとキャンバス領域のマウスが遅くなりますが、 (ただし、明らかにCanvas.Leftバインディングは機能しませんので、省略記号は間違った場所にあります)それぞれのキャンバスを必要とせずにこれらのアイテムを配置する方法はありますか?Silverlight 4キャンバスを使わないキャンバスなしのバインディング
<Canvas>
<ItemsControl ItemsSource="{Binding Path=SpatialData.TrainEvents.ArrDepEllipseOfLines}" Name="ctrlChartTrainEventsArrDep" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<Canvas>
<Ellipse Width="{Binding EventShape.Width}" Height="{Binding EventShape.Height}" Stroke="{Binding Path=Stroke}" StrokeThickness="{Binding StrokeThickness}" Fill="{Binding Path=Fill}" Canvas.Left="{Binding CanvasPlacement.X}" Canvas.Top="{Binding CanvasPlacement.Y}" />
</Canvas>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Canvas>
おかげで非常に多く、 ベッキー
他の人が問題を再現しやすくするために、ここにいくつかのコード/ xamlを入れてください。 – decyclone