Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1810
Reg: Drag and Drop from Listbox to TextBox
posted

Hi,

I am using a ListBox with text blocks (ListBoxItems) and i want to drag and drop a list box item to a text box.  And i want to drop at a specified position inside a textbox.  Pls let me know how to proceed with a sample.

Regards,

Amarendra.

  • 138253
    Offline posted

    Hello Amarendra,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I created a sample project with the functionality you want. Basically in the Drop event I get the mouse position according to the TextBox and insert the text at that point.

     

    Feel free to write me if you have further questions.

    DragDropListBoxItems.zip