Silverlight の Toolkit ライブラリに「ListBoxDragDropTarget」コントロールを利用すれば、Drag&Drop可能なコントロールの作成ができます。 使用例: //先頭にToolkitの参照を追加しまあす。 xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" <controlsToolkit:ListBoxDragDropTarget AllowDrop="true" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"> <ListBox x:Name="fromListBox" SelectionMode="Extended" DisplayMemberPath="Name"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Vertical"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> </controlsToolkit:ListBoxDragDropTarget> セシウム137を97.7%吸着 コメント: |