Hi! I have pane with two grid and there is a listbox in both grid. I'd like to add Drag & Drop feature to the pane, so the user can drag a list element in the left listbox and drop it in the right listbox. I found many great tutorials and I could add the appropriate code to my pane but when the application is running and I click on the menu item of my pane it does not load. If I delete the drag & drop code everything works fine, so the problem is definitely the Drag & Drop feature.
<telerikDocking:RadPane x:Class="Module_TestModule1.PaneSzD" telerikDocking:RadDocking.SerializationTag="Module_TestModule1.PaneSzD"
xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Name="PaneSzD1" Header="PaneSzD" IsHidden="True">
<StackPanel Orientation="Horizontal">
<Grid x:Name="LeftGrid" Width="250">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<toolkit:ListBoxDragDropTarget AllowDrop="True" Grid.Row="0">
<ListBox Name="lbLRecords">
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ListBox>
</toolkit:ListBoxDragDropTarget>
<StackPanel Grid.Row="1" Height="Auto">
<TextBox Name="tbLRecord" KeyDown="tbLRecord_KeyDown" />
<Button Name="btnLAddRecord" Content="Add Record" Height="30" Click="btnLAddRecord_Click" ></Button>
</StackPanel>
</Grid>
<StackPanel Orientation="Vertical">
<Button Name="btnLMoveRecord" Content="Move Record From Left" Height="30" Click="btnLMoveRecord_Click" Margin="10,5,10,5" />
<Button Name="btnRMoveRecord" Content="Move Record From Right" Height="30" Click="btnRMoveRecord_Click" Margin="10,5,10,5" />
</StackPanel>
<Grid x:Name="RightGrid" Width="250">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<toolkit:ListBoxDragDropTarget AllowDrop="True" Grid.Row="0">
<ListBox Name="lbRRecords">
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ListBox>
</toolkit:ListBoxDragDropTarget>
<StackPanel Grid.Row="1" Height="Auto">
<TextBox Name="tbRRecord" KeyDown="tbRRecord_KeyDown" />
<Button Name="btnRAddRecord" Content="Add Record" Height="30" Click="btnRAddRecord_Click"></Button>
</StackPanel>
</Grid>
</StackPanel>
</telerikDocking:RadPane>
Thanks for any help!