Question:
When I DragandDrop two Listbox in RadGroup each other ,it appear a question. I must DragandDrop the item to Listboxitem nearside,or I can't drop the item to other listbox.
<telerik:RadDocking>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadPane Header="ListBox1" AllowDrop="True">
<ListBox x:Name="lstbox" telerik:RadDragAndDropManager.AllowDrop="True"
ItemContainerStyle="{StaticResource draggableItemStyle}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<Image Source="{Binding Url}" Width="35" HorizontalAlignment="Center" Height="32" Margin="0 0 10 0" />
<TextBlock TextWrapping="Wrap" Width="50" Text="{Binding Title}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
-
<ListBox.Template>
<ControlTemplate>
- <ScrollViewer VerticalScrollBarVisibility="Auto" BorderBrush="{x:Null}">
- <ItemsPresenter />
- </ScrollViewer>
- </ControlTemplate>
- </ListBox.Template>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<telerik:RadWrapPanel Orientation="Horizontal" Name="rad" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
Explain
Please download Sample Application from below link:Below is my link of my sample application:
http://rapidshare.com/files/433014202/DragAndDrop.7z
Part of the source, with two pictures