Note that there are some explanatory texts on larger screens.

plurals
  1. POSilverlight ToolKit DragDrop problem
    primarykey
    data
    text
    <p>I have pane with two grid and there is a listbox in both grid. I'd like to add Drag &amp; 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 &amp; drop code everything works fine, so the problem is definitely the Drag &amp; Drop feature.</p> <pre><code>&lt;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"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;Grid x:Name="LeftGrid" Width="250"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition/&gt; &lt;RowDefinition/&gt; &lt;/Grid.RowDefinitions&gt; &lt;toolkit:ListBoxDragDropTarget AllowDrop="True" Grid.Row="0"&gt; &lt;ListBox Name="lbLRecords"&gt; &lt;ItemsPanelTemplate&gt; &lt;StackPanel Orientation="Vertical" /&gt; &lt;/ItemsPanelTemplate&gt; &lt;/ListBox&gt; &lt;/toolkit:ListBoxDragDropTarget&gt; &lt;StackPanel Grid.Row="1" Height="Auto"&gt; &lt;TextBox Name="tbLRecord" KeyDown="tbLRecord_KeyDown" /&gt; &lt;Button Name="btnLAddRecord" Content="Add Record" Height="30" Click="btnLAddRecord_Click" &gt;&lt;/Button&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;StackPanel Orientation="Vertical"&gt; &lt;Button Name="btnLMoveRecord" Content="Move Record From Left" Height="30" Click="btnLMoveRecord_Click" Margin="10,5,10,5" /&gt; &lt;Button Name="btnRMoveRecord" Content="Move Record From Right" Height="30" Click="btnRMoveRecord_Click" Margin="10,5,10,5" /&gt; &lt;/StackPanel&gt; &lt;Grid x:Name="RightGrid" Width="250"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition/&gt; &lt;RowDefinition/&gt; &lt;/Grid.RowDefinitions&gt; &lt;toolkit:ListBoxDragDropTarget AllowDrop="True" Grid.Row="0"&gt; &lt;ListBox Name="lbRRecords"&gt; &lt;ItemsPanelTemplate&gt; &lt;StackPanel Orientation="Vertical" /&gt; &lt;/ItemsPanelTemplate&gt; &lt;/ListBox&gt; &lt;/toolkit:ListBoxDragDropTarget&gt; &lt;StackPanel Grid.Row="1" Height="Auto"&gt; &lt;TextBox Name="tbRRecord" KeyDown="tbRRecord_KeyDown" /&gt; &lt;Button Name="btnRAddRecord" Content="Add Record" Height="30" Click="btnRAddRecord_Click"&gt;&lt;/Button&gt; &lt;/StackPanel&gt; &lt;/Grid&gt; &lt;/StackPanel&gt; &lt;/telerikDocking:RadPane&gt; </code></pre> <p>Thanks for any help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload