Drag and Drop Listbox: Box 1 to Box 2 then same data dragged back to Box 1

Right now, I have one listbox (1) with string data that can be dragged to another listbox (2).  However, I cannot take that same string data and drag it back to the original listbox (1).
If I try to do that, the string data just disappears and I cannot retrieve it again.
Thanks for any response, much appreciated!

An example would help tremendously. 
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

Similar Messages

  • Drag and Drop multiple boxes and snap to multiple locations then reveal button

    Hi I'm Trying to develop a small game where the user chooses from a range of boxes of the left of screen and can drag 3 of them separatley to 3 holding boxes on ther right. each box can be dragged to any location and the order is not important. Once the 3 holding boxes are all full I want a new button to appear. I completed a tutorial and I've got one box working perfectly but no matter what i try I can't get it working with multiple boxes and locations. Below is a list of the instance names of the movie clips plus my actionscript. I've attached a link to the flash file. Any help would be really appreciated. Cheers
    LINK
    http://www.sainters.net/flash_preview/flash_test/flash test_v6.fla.zip
    INSTANCE NAMES
    box 1 = "circle_mc"
    box 2 = "circle_mc2"
    both the grey boxes are called = "targetCircle"
    ACTIONSCRIPT
    function dragSetup(clip, targ) {
    clip.onPress = function() {
    startDrag(this);
    this.beingDragged=true;
    clip.onRelease = clip.onReleaseOutside=function () {
    stopDrag();
    this.beingDragged=false;
    if (eval(this._droptarget) == targ) {
    this.onTarget = true;
    _root.targ.gotoAndStop(2);
    } else {
    this.onTarget = false;
    _root.targ.gotoAndStop(1);
    //the variables below will store the clips starting position
    clip.myHomeX = clip._x;
    clip.myHomeY = clip._y;
    //the variables below will store the clips end position
    clip.myFinalX = targ._x;
    clip.myFinalY = targ._y;
    clip.onEnterFrame = function() {
    //all these actions basically just say "if the mouse is up (in other words - the clip is not being dragged)
    // then move the MC back to its original starting point (with a smooth motion)"
    if (!this.beingDragged && !this.onTarget) {
    this._x -= (this._x-this.myHomeX)/5;
    this._y -= (this._y-this.myHomeY)/5;
    //if the circle is dropped on any part of the target it slides to the center of the target
    } else if (!this.beingDragged && this.onTarget) {
    this._x -= (this._x-this.myFinalX)/5;
    this._y -= (this._y-this.myFinalY)/5;
    dragSetup(circle_mc,targetCircle);

    Two things...
    1) if you want both circles to be draggable you need to execute that last line twice, once for each.
    dragSetup(circle_mc); // left off second argument purposefully
    dragSetup(circle_mc2);
    2) you do not want to name the targets the same name... only one will work as a target that way.  GIve them different names, and assign each one a property like...
      targetCircle1.isTarget == true;
      targetCircle2.isTarget == true;
    and in your hittest function test for that property.  And if you don't want to allow the user to drop two circles on the same target, set that property to false after it is dropped on... something like...
    if (this._droptarget.isTarget) { // may still need eval() portion
        this._droptarget.isTarget = false;
    Back to item 1... with this approach you won't need to pass the target as an argument, unless you need to have each circle dropped on a specific target instead of any of them (in that case you go back to specifying and testing the target instance)
    Your overall dragSetup function will change in various ways if you follow what is offered here as far as allowing for any circle to be placed on any target.  If you require specific targets, then your code would remain much as it is except you still need different instance names for all the objects.

  • Drag and Drop Listbox - Help

    Hello! I am back to doing some LabVIEW programming and ran into a problem that I cannot seem to solve.
    I am trying to use dag and drop on a listbox. I have it set to move only and it works fine. The problem is that if I have a drop event the item moved just goes away. I could not find any examples or answers in the forums.
    Anyone care to teach me about drag and drop?
    Thanks
    =====================
    LabVIEW 2012
    Solved!
    Go to Solution.
    Attachments:
    Drag Drop Listbox.vi ‏8 KB

    Hey rossu,
    I believe that I have found something that may help.  The link below explains how to select multiple items at once.
    http://zone.ni.com/reference/en-XX/help/371361J-01​/lvhowto/setting_the_number_of_sele/
    Also, it may help to repost this issue in a new forum since this one has been inactive for a while.  
    Hope this helped.
    Taylor

  • Standalone Interactive Forms without ABAP Dynpro and Drop down boxes

    Friends,
    I need to create Adobe interactive form with drop down boxes. I have 2 questions:
    1) do i need to use abap dynpro to display the form or can i display the form using print program
    2) for using drop down box, should i use the one from standard library or Web Dynpro ActiveX or Web Dynpro Native library
    Points will be rewarded for helpful answers.
    Thanks.

    Hi,
    Its not necessary to have ABAP web Dynpro to create and display adobe forms. You can display it in programs in ABAP. Go to following link to know more:
    [https://www.sdn.sap.com/irj/sdn/adobe#section39]
    There is a sample application for Adobe form in ABAP and lot more.
    You can use web dynpro Native dropdown list.
    Hope it will help you.
    Regards,
    Vaibhav Tiwari.

  • AppleScript how to use "get" for field information and drop-down boxes?

    Hi all,
    First post.
    Looking to use the "get" function or similar for getting information in a list or from a drop-down box or a field.
    Example, you open keychain, open the info. for a cert and want to read the currently selected trust setting for "When using this certificate" drop-down.
    Or, you want to check the Common Name field under details.
    How would I return these specific values?
    Thank you,
    -b

    The exact question being asked here: http://forum.soft32.com/mac/select-table-row-ftopict101735.html
    But, that doesn't work with the latest AppleScript.

  • I typed my username and then my password for an account into the username field accidentally. now i start to type username and drop down box gives option of using this to fill username field. how do i get it to stop?

    When start to enter username ("un")for an account that I use firefox suggests previously typed ones in drop down box. Accidentally typed a password next to my un, now everytime i begin to type un this presents as option i can click on to fill un field. If someone else wanted to login to own account on my comp firefox would show this. not secure. suggestions?

    Remove saved Password(s): [http://kb.mozillazine.org/Menu_differences Firefox > Preferences] > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * http://kb.mozillazine.org/Deleting_autocomplete_entries

  • Drag and drop over AxAcroPDFLib.AxAcroPDF in C# Winform

    Hi,
    I've embedded the AxAcroPDFLib.AxAcroPDF PDF Browser control from SDK 2 in a .Net C# Winform, and can load and display a PDF within it.
    I want to be able to drag and drop System.Windows.Forms.TextBox (s) over the control and when dropped based on mouse co-ordinates
    store the x,y coordinates of the text boxes in a database.
    But when I drag and drop text boxes, the cursor changes to No/Disabled and I am unable to drag onto the AxAcroPDF control.
    I
    I've set AllowDrop to True, but to no obvious effect
    Is this possible ?.
    I've simulated the same affect with displaying other types of images such as gif displayed within a Systems.Windows.Form.PictureBox, but this control has Dragdrop events available, but no equivalent withAxAcroPDF?
    Thanks
    Bill

    I have also tried using a System.Windows.Panel control as an "overlayed/same size/location" child of AxAcroPDF , which supports drag and drop events.
    The drag and drop works, but the PDF does not show through, even with the Panel.BackColor/Forecolor set to Transparent.
    Regards
    Bill

  • Drop down boxes in PDF files

    Is there any possible way to open pdf forms and enter drop down boxes into pre existing forms? We fill out the same form constantly but some of the information varies only slightly and drop down boxes would make the process more efficient. Either that, or being able to load pdf files with a skeleton over them already would also work. If anybody knows how to do this, your help would be greatly appreciated.

    Drop down boxes are called combo boxes in Acrobat. You can add them to PDFs if there are no security settings in place that restrict editing the document. Acrobat's help document has more information on adding form fields.

  • Can you use a custom cursor with drag and drop?

    Hi there! I'm a newbie flash user and working on a simulation for a graduate course in instructional design. I'm using Flash Professional CC on Mac. Here's what I'm trying to do. I have several draggable sprites on the stage and three target sprites. I have specified the original x,y locations of the sprites and have set the end x,y locations as those of each of the three targets. Items must be dragged to one of the three targets.
    Some questions:
    1. Can I specify more than one End x,y location for a draggable sprite? I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
    2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of  hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around  but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
    3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
    4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects  than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
    Thanks!
    I'm pasting my code from the actions panel below so you can see what's going on:
    stop();
    /* Custom Mouse Cursor
    Replaces the default mouse cursor with the specified symbol instance.
    stage.addChild(customcursor);
    customcursor.mouseEnabled = false;
    customcursor.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
    function fl_CustomMouseCursor(event:Event)
      customcursor.x = stage.mouseX;
      customcursor.y = stage.mouseY;
    Mouse.hide();
    //To restore the default mouse pointer, uncomment the following lines:
    customcursor.removeEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor);
    stage.removeChild(customcursor);
    Mouse.show();
    //set up variables and objects for dragging
    var offset:int = 10;
    var appleStartX:int = 243;
    var appleStartY:int = 156;
    var appleEndX:int = 522;
    var appleEndY:int = 22;
    apple.buttonMode = true;
    apple.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    apple.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var cupStartX:int = 39;
    var cupStartY:int = 266;
    var cupEndX:int = 520;
    var cupEndY:int = 175;
    cup.buttonMode = true;
    cup.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    cup.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var barStartX:int = 178;
    var barStartY:int = 234;
    var barEndX:int = 522;
    var barEndY:int = 22;
    bar.buttonMode = true;
    bar.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    bar.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var orangeStartX:int = 284;
    var orangeStartY:int = 102;
    var orangeEndX:int = 522;
    var orangeEndY:int = 22;
    orange.buttonMode = true;
    orange.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    orange.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var bottleStartX:int = 172;
    var bottleStartY:int = 303;
    var bottleEndX:int = 520;
    var bottleEndY:int = 175;
    bottle.buttonMode = true;
    bottle.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    bottle.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var bananaStartX:int = 113;
    var bananaStartY:int = 123;
    var bananaEndX:int = 522;
    var bananaEndY:int = 22;
    banana.buttonMode = true;
    banana.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    banana.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var napkinStartX:int = 248;
    var napkinStartY:int = 271;
    var napkinEndX:int = 520;
    var napkinEndY:int = 175;
    napkin.buttonMode = true;
    napkin.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    napkin.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var yogurtStartX:int = 27;
    var yogurtStartY:int = 136;
    var yogurtEndX:int = 518;
    var yogurtEndY:int = 329;
    yogurt.buttonMode = true;
    yogurt.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    yogurt.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var strawberryStartX:int = 120;
    var strawberryStartY:int = 285;
    var strawberryEndX:int = 522;
    var strawberryEndY:int = 22;
    strawberry.buttonMode = true;
    strawberry.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    strawberry.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var sandwichStartX:int = 7;
    var sandwichStartY:int = 364;
    var sandwichEndX:int = 522;
    var sandwichEndY:int = 22;
    sandwich.buttonMode = true;
    sandwich.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    sandwich.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var juiceStartX:int = 88;
    var juiceStartY:int = 347;
    var juiceEndX:int = 518;
    var juiceEndY:int = 329;
    juice.buttonMode = true;
    juice.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    juice.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var foilStartX:int = 39;
    var foilStartY:int = 416;
    var foilEndX:int = 520;
    var foilEndY:int = 175;
    foil.buttonMode = true;
    foil.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    foil.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    var waxbagStartX:int = 235;
    var waxbagStartY:int = 342;
    var waxbagEndX:int = 522;
    var waxbagEndY:int = 22;
    waxbag.buttonMode = true;
    waxbag.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
    waxbag.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
    function startDragging (e:MouseEvent) {
      e.currentTarget.startDrag();
    function stopDragging (e:MouseEvent) {
      e.currentTarget.stopDrag();
      switch (e.currentTarget) {
      case apple:
      if (apple.x < appleEndX - offset || apple.x > appleEndX + offset || apple.y < appleEndY - offset || apple.y > appleEndY + offset) {
      apple.x = appleStartX;
      apple.y = appleStartY;
      else {
      apple.x = appleEndX;
      apple.y = appleEndY;
      //checkGame();
      break;
      case sandwich:
    if (sandwich.x < sandwichEndX - offset || sandwich.x > sandwichEndX + offset || sandwich.y < sandwichEndY - offset || sandwich.y > sandwichEndY + offset) {
      sandwich.x = sandwichStartX;
      sandwich.y = sandwichStartY;
      else {
      sandwich.x = sandwichEndX;
      sandwich.y = sandwichEndY;
      //checkGame();
      break;
      case orange:
    if (orange.x < orangeEndX - offset || orange.x > orangeEndX + offset || orange.y < orangeEndY - offset || orange.y > orangeEndY + offset) {
      orange.x = orangeStartX;
      orange.y = orangeStartY;
      else {
      orange.x = orangeEndX;
      orange.y = orangeEndY;
      //checkGame();
      break;
      case strawberry:
    if (strawberry.x < strawberryEndX - offset || strawberry.x > strawberryEndX + offset || strawberry.y < strawberryEndY - offset || strawberry.y > strawberryEndY + offset) {
      strawberry.x = strawberryStartX;
      strawberry.y = strawberryStartY;
      else {
      strawberry.x = strawberryEndX;
      strawberry.y = strawberryEndY;
      //checkGame();
      break;
      case napkin:
    if (napkin.x < napkinEndX - offset || napkin.x > napkinEndX + offset || napkin.y < napkinEndY - offset || napkin.y > napkinEndY + offset) {
      napkin.x = napkinStartX;
      napkin.y = napkinStartY;
      else {
      napkin.x = napkinEndX;
      napkin.y = napkinEndY;
      //checkGame();
      break;
      case bar:
    if (bar.x < barEndX - offset || bar.x > barEndX + offset || bar.y < barEndY - offset || bar.y > barEndY + offset) {
      bar.x = barStartX;
      bar.y = barStartY;
      else {
      bar.x = barEndX;
      bar.y = barEndY;
      //checkGame();
      break;
      case juice:
    if (juice.x < juiceEndX - offset || juice.x > juiceEndX + offset || juice.y < juiceEndY - offset || juice.y > juiceEndY + offset) {
      juice.x = juiceStartX;
      juice.y = juiceStartY;
      else {
      juice.x = juiceEndX;
      juice.y = juiceEndY;
      //checkGame();
      break;
      case foil:
    if (foil.x < foilEndX - offset || foil.x > foilEndX + offset || foil.y < foilEndY - offset || foil.y > foilEndY + offset) {
      foil.x = foilStartX;
      foil.y = foilStartY;
      else {
      foil.x = foilEndX;
      foil.y = foilEndY;
      //checkGame();
      break;
      case banana:
    if (banana.x < bananaEndX - offset || banana.x > bananaEndX + offset || banana.y < bananaEndY - offset || banana.y > bananaEndY + offset) {
      banana.x = bananaStartX;
      banana.y = bananaStartY;
      else {
      banana.x = bananaEndX;
      banana.y = bananaEndY;
      //checkGame();
      break;
      case bottle:
    if (bottle.x < bottleEndX - offset || bottle.x > bottleEndX + offset || bottle.y < bottleEndY - offset || bottle.y > bottleEndY + offset) {
      bottle.x = bottleStartX;
      bottle.y = bottleStartY;
      else {
      bottle.x = bottleEndX;
      bottle.y = bottleEndY;
      //checkGame();
      break;
      case waxbag:
    if (waxbag.x < waxbagEndX - offset || waxbag.x > waxbagEndX + offset || waxbag.y < waxbagEndY - offset || waxbag.y > waxbagEndY + offset) {
      waxbag.x = waxbagStartX;
      waxbag.y = waxbagStartY;
      else {
      waxbag.x = waxbagEndX;
      waxbag.y = waxbagEndY;
      //checkGame();
      break;
      case cup:
    if (cup.x < cupEndX - offset || cup.x > cupEndX + offset || cup.y < cupEndY - offset || cup.y > cupEndY + offset) {
      cup.x = cupStartX;
      cup.y = cupStartY;
      else {
      cup.x = cupEndX;
      cup.y = cupEndY;
      //checkGame();
      break;
      case yogurt:
    if (yogurt.x < yogurtEndX - offset || yogurt.x > yogurtEndX + offset || yogurt.y < yogurtEndY - offset || yogurt.y > yogurtEndY + offset) {
      yogurt.x = yogurtStartX;
      yogurt.y = yogurtStartY;
      else {
      waxbag.x = waxbagEndX;
      waxbag.y = waxbagEndY;
      //checkGame();

    Some questions:
    1. Can I specify more than one End x,y location for a draggable sprite?
    yes, use an if-else statement
    I'm creating a lesson to teach kindergartners how to sort lunchroom waste. If they have a napkin, for example, it could either go into the compost OR into the recycling. In cases like this where an item could really be placed into more than one bin, I want them to get it right if they do either of those things, rather than forcing them to choose which one.
    2. To make my project more "fun" for kids, I wanted to customize the cursor with a graphic of  hand. When I tried this in the flash file it works perfectly until I add the drag and drop functionality for the wasted items. Then the cursor will more around  but not pick up any items. Once I revert back to the standard pointer, the correct drag and drop functionality is restored.
    assign your cursor's mouseEnabled property to false:
    yourcursor.mouseEnabled=false;
    3. I have it set to snap back to the original location if learner attempts to drop the item on the wrong target. I want to be able to play a sound file when that happens, as well as play a sound file when it lands on the correct target, as well as shrink the item and change its opacity so that it appears invisible. I want to give the illusion of it being placed into the bin. I have no idea as to the proper way to code these events so that they happen.
    use the sound class to create a sound:
    // initialize your correct sound once with
    var correctSound:Sound=new CorrectSound();  // add an mp3 sound to your library and assign it class = CorrectSound
    // apply the play() method everytime you want your sound to play:
    correctSound.play();
    // change an object's opacity:
    someobject.alpha = .3;  // partially visible
    someobject.alpha = 1;  // fully visible
    someobject.visible=false;  // not visible, at all.
    // change an object's scale
    someobject.scaleX=someobject.scaleY=.5;  // shink width and height by 2
    someobject.scaleX=someobject.scaleY=1;  // resize to original
    4. I've watched dozens of hours of youtube tutorials before coming here. I'm a quick study, but am very new to action script. In one of the videos the developer showed referencing an external action script file which I don't think is an option in CC. The coding method he used seemed much more streamlined and "clean" than the chunks I'm working with now. Is there an easy way for me to code information about these objects  than the way I've got it here now? I hate starting new things with bad habits. The perils of self-teaching.
    you could google: 
    actionscript 3 class coding
    actionscript 3 object oriented programming
    p.s.  you can simplify and streamline your coding by learning about arrays and using hitTestObject.

  • How to Create Table Using Column Drag and Drop Feature

    Hi:
    I am new to Oracle SQL dev Data Modeler tool and would like to know if there is a way to create a new table by re-using the existing columns or column groups. The idea is to maintain consistency and save table design time. If columns created previously can be re-used and require drag and drop of column in the right pane, then only new columns need to be manually created.
    Any thoughts on this will be appreciated.
    Thanks!

    Hi Kent
    I checked out the video and tried it in Oracle designer, it works and works great!
    My other question is that I may have several set of columns that I may want to group depending on the table requirements. Can I have multiple templates and choose which one to apply to?
    Also, how do I choose the table where the table template needs to be applied. As I may be interested in applying the table template to selected tables only.
    Thanks
    Edited by: user648132 on Feb 20, 2012 10:47 AM

  • WPF Treeview Drag and Drop

    Hi All,
    I faced an when using WPF Treeview Drag and Drop function. Firstly, I can achieve Drag and Drop in a general TreeViewItem. I followed this article in CodeProject: http://www.codeproject.com/Articles/55168/Drag-and-Drop-Feature-in-WPF-TreeView-Control
    This scenario works for the TreeViewItem looks like below,
    <TreeView x:Name="_countries" AllowDrop="True" MouseLeftButtonDown="OnTMouseDown">
    <TreeViewItem Header="USA">
    <TreeViewItem Header="New York"/>
    <TreeViewItem Header="Canifonia"/>
    <TreeViewItem Header="Sourth East">
    <TreeViewItem Header="Houston"/>
    <TreeViewItem Header="DAL"/>
    <TreeViewItem Header="SAN"/>
    </TreeViewItem>
    </TreeViewItem>
    <TreeViewItem Header="China">
    <TreeViewItem Header="Beijing"/>
    <TreeViewItem Header="Jiangsu">
    <TreeViewItem Header="Nantong"/>
    <TreeViewItem Header="Suzhou"/>
    <TreeViewItem Header="Wuxi"/>
    </TreeViewItem>
    </TreeViewItem>
    <TreeView.ItemContainerStyle>
    <Style TargetType="TreeViewItem">
    <EventSetter Event="TreeViewItem.DragOver" Handler="OnTDragOver"/>
    <EventSetter Event="TreeViewItem.Drop" Handler="OnTDrop"/>
    <EventSetter Event="TreeViewItem.MouseMove" Handler="OnTMouseMove"/>
    </Style>
    </TreeView.ItemContainerStyle>
    </TreeView>
    My Question is if i custom the TreeView Item like:
    <TreeView.ItemTemplate>
    <HierarchicalDataTemplate DataType="{x:Type local:QuestionInfo}" ItemsSource="{Binding Infos}">
    <StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding Path=Name}"/>
    <TextBlock Text="{Binding Path=Score}"/>
    </StackPanel>
    </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
    1. How to achieve the Drag and Drop function?
    2. Since the data is binding to TreeView, When i Drag and Drop item. I want to keep the same order in my data source. In other words, If i drag the third TreeView Item to the first item.
    3. How to change the Drag and Drop animation?
    Could you please do me a favor?
    Thanks a lot.

    Hello Ricky,
    For question 1, "How to achieve the Drag and Drop function?"
    I would recommend you read a blog from here:
    http://wpftutorial.net/DragAndDrop.html?showallcomments
    The important part of this code is the following line:
    // Get the dragged ListViewItem
    ListView listView = sender as ListView;
    ListViewItem listViewItem =
    FindAnchestor<ListViewItem>((DependencyObject)e.OriginalSource);
    And the FindAnchestor is to find the parent of your selection:
    // Helper to search up the VisualTree
    private static T FindAnchestor<T>(DependencyObject current)
    where T : DependencyObject
    do
    if( current is T )
    return (T)current;
    current = VisualTreeHelper.GetParent(current);
    while (current != null);
    return null;
    Please consider the following scenario, if you have a textbox in a canvas, if you want to drag and drop your textbox, you are using the function about to search for it parent object, the canvas and then you are moving that canvas. In this way we can drag
    and drop a item which may contains the textbox you mentioned.
    A complete sample can be checked from a great blog below:
    http://openszone.com/solution/how-to-accomplish-drag-and-drop-wpf-treeviewitem
    And for the question about the Drag and Drop animation, do you mean you want to "create a preview effect for the operation"
    If so, try this blog:http://blogs.msdn.com/b/marcelolr/archive/2006/03/03/showing-drag-drop-feedback-on-the-wpf-adorner-layer.aspx
    The second question "data source", I think we can talk about it if you can share how you defined your datasource. That is more reasonable then just guess how your source will be filled into treeview.
    Anyway, I would recommend you check Flankin's blog for some details about this.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't drag and drop apps and ringtones from itunes into the iphone.

    I'm sure it's something that I have to enable in itunes or the iphone, but I can't seem to drag and drop my apps or ringtones from itunes. This started when I got a replacement phone from my provider. I can't transfer them on my itunes. I get a block icon when I try to drag and drop. So the only way to get all the apps back is by re-downloading on the phone itself, but some apps are huge and I wouldn't want to do that. All the apps I backed up and even new ones I purchased can't seem to transfer. I tried deauthorizing and authorizing, re-downloading apps, syncing. So far nothing. Any tips?

    Thanks for trying but your answer is incorrect, according to an email I received today from HP Connected:
    "I have reviewed your email. I understand that you have questions related to rearranging the order of the apps on the printer. I know this can be frustrating, and I want you to know you're certainly valuable to us and I want to do everything possible to ensure your complete satisfaction. The following information should provide the answers you need:
    1) Unfortunately when HP launched the new website (www.hpconnected.com) they did not include a method of rearranging the apps on the printer. They may include this feature in a future update, however as this time it is not available.
    2) If you have made the upgrade from eprintcenter to HP Connected you do not have the option of returning. Eprintcenter is in the process of being eliminated and unfortunately retuning to the old site is not possible."
    I hope <<S-O-O-N>> HP fixes this new website -- it's crazy to take away any controls like this from their customers and not either embellish them or at least leave them be.
    I may take this 7610 OJ back for a new Brother 11x17 all-in-one --- they look nice )

  • Preview Drag and Drop Issue

    I use preview in school a lot. Converting lectures to PDF is a lot easier to use and i us a program called iFlash to make flash cards.
    What I want to do is use the text tool to highlight sections of text, drag them to the flash card window and then drop the text there. This is a really quick and easy way to make the flash cards.
    This works except when i click back to the card all the text that i dragged is deleted.
    Does anyone else have this issue. I have checked, this feature (highlight and drag...) works well in other programs (mail, pages) but not with my flash card program.
    Any ideas?

    I have checked, this feature (highlight and drag...) works well in other programs (mail, pages) but not with my flash card program.
    That suggests that the problem is with iFlash. Will it accept drags from other programs, besides Preview? If not, it probably doesn't support drag and drop at all. If it does, then its implementation is probably buggy, and you should contact the developer.

  • Drag and Drop to Source Monitor but not Double Click?

    Has anyone seen this issue?  I've got an importer plugin.  If you drag and drop a clip into the source monitor, then it works fine.  But if you double click it then nothing happens.  Any idea why this would happen?  Normal clips (like MOV files) work fine so there must be something wrong with my plugin.
    Thanks!

    Thanks Steve!  For any one else with the same issue, the actual culprit was setupOnDblClk.

  • Drag and Drop stopped working in iTunes

    Just recently upgraded to latest iTunes 10.4, OS X 10.5.8 and Wacom driver 6.1.6-4. Drag and drop a selection to a playlist in iTunes no longer works. All was fine before iTunes/OS upgrade. Only upgraded Wacom to see if it made a difference which it didn't. Dragging and dropping with a USB mouse seems okay. I've noticed several similar problems on this board with no solution. Anyone else having this issue that has found a solution? Thanks.

    Your case sounds very similar to mine.  I a bit older Mac G5 running OS X 10.5.8.  When I upgraded to iTunes 10.4 I found the drag and drop gone and a few other inconsistencies.  I reloaded iTunes and now everything works pretty well, but if I go into the iTunes Store my drag and drop feature goes away.  If i relaunch iTunes it comes back until I go in the Store again.  Hoping someone more familiar with the OS and application details can point me in some direction.  Thx

Maybe you are looking for

  • How do i find/create a missing itunes library .itl file?

    I'm trying to transfer my itunes account from my old laptop to my new one and I have done this succesfully twice over the last couple of years but for some reason it's not working. I copy the whole itunes file to the new laptop but when I open itunes

  • Transferring data from iphone 3G to 3GS + something that makes this complex

    My father passed away this past week, and gave me his new iPhone 3GS to replace my current 3G model. Once I have AT&T switch me over to the 3GS phone, then I know I need to perform a restore back-up to transfer all of my data over. Hopefully that wil

  • SQLServer migration: trigger 'MD_PROJECTS_TRG' is invalid

    Did anybody else come across this? I'm trying to migrate some objects from SQL Server, but cannot capture the data base. I did everything as the help says: -Created a user to migrate (MIGRACAO) and a user to be the destiny of the migration (INFOAC) i

  • How to code in SE54 transaction in Event 01

    Hello All, I have a requirement to create a functionality of maintainance view (like SM30), but there are validations for Event 01. I know that this will create a new include program, but i have no idea on how to code the validations, for example if

  • Ipod will not add certain tv epi for some reason!

    i bought this epi of monk, the pilot epi of season one, and it is in two parts. i bought both parts, but for some reason only part two shows up on my ipod....yet it is in my itunes and i can view it there and everything. is there some reason why it i