I can not apply Drag Drop in this case
-
Hello,
i am getting stuck to apply a feature in my project with Drag&Drop developing in WPF/C#, i can post you an example of code of what i want to do as follow :
<pre lang="c#"><Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid x:Name="box1" Grid.Row="0" >
<Grid Name="grid1" Background="Aqua" Margin="15"></Grid>
</Grid>
<Grid x:Name="box2" Grid.Row="1" >
<Grid Name="grid2" Background="blue" Margin="15"></Grid>
</Grid>
<Grid x:Name="box3" Grid.Row="2" >
<Grid Name="grid3" Background="green" Margin="15"></Grid>
</Grid>
</Grid></pre>each Grid(box) contains another Grid my simple purpose is to drag the "grid1" to the "box2" then automatically the "grid2" go to the "box1" and this rule is applied every time i want drag&drop ; the Grid "box" is always not movable .
From many days i check out many project and library online as GongSolutions.Wpf.DragDrop,Blacklight.ShowCase.WPF and else but don't cover my request because in each grid there are many controls binding data(in the real project should be 30 grid more all controls ) then an ItemControl don't cover my purpose.
I am easy to do a simple Drag&Drop but in this case is more complicated for me then i ask you kindly if you have any suggestion or idea to work out this case.I give in anticipate my apologies if my question result weird as i have not much experience in WPF.
Thank you in anticipate