Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. I can not apply Drag Drop in this case

I can not apply Drag Drop in this case

Scheduled Pinned Locked Moved WPF
csharpwpfcsswcfhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VisualLive
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups