Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 959413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:01:15+00:00 2026-05-16T01:01:15+00:00

I tried to get Drag and Drop working between two ListBox Controls. But somehow

  • 0

I tried to get Drag and Drop working between two ListBox Controls. But somehow picking up an item is not possible.

Maybe you have a hint for me to get it working

My User Control xaml code looks like this:

 <UserControl.Resources>
    <DataTemplate x:Key="ItemTemplate">
        <StackPanel Orientation="Horizontal">
            <Image Width="20" Height="20" Source="{Binding Path=pic}"></Image>
            <TextBlock Text="{Binding Path=name}"></TextBlock>
        </StackPanel>
    </DataTemplate>
</UserControl.Resources>
<StackPanel>
    <Grid x:Name="LayoutRoot" Height="352" Width="435">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="300"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="30"/>
            <ColumnDefinition Width="200"/>
            <ColumnDefinition Width="5*" />
        </Grid.ColumnDefinitions>

        <TextBlock Text="All Friends" Grid.Column="0" Grid.Row="0"/>
        <controlsToolkit:ListBoxDragDropTarget Grid.Column="0" Grid.Row="1" AllowDrop="true" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <ListBox x:Name="FriendsListBox" SelectionMode="Extended" ItemTemplate="{StaticResource ItemTemplate}">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
            </ListBox>
        </controlsToolkit:ListBoxDragDropTarget>

        <TextBlock Text="Friends with access to room" Grid.Column="2" Grid.Row="0"/>
        <controlsToolkit:ListBoxDragDropTarget Grid.Column="2" Grid.Row="1" AllowDrop="true" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <ListBox x:Name="AllowedFriendsListBox" SelectionMode="Extended" ItemTemplate="{StaticResource ItemTemplate}">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
            </ListBox>
        </controlsToolkit:ListBoxDragDropTarget>
    </Grid>

</StackPanel>

I am binding my first ListBox to a IList of Facebook friend users.

It should be possible to drag and drop friends from one ListBox to the other.

I hope you can help me. Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:01:16+00:00Added an answer on May 16, 2026 at 1:01 am

    Not sure if you have rechecked that work item, it looks like someone has uploaded a patch for it recently which you could try out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly I tried to get fabric working, but it kept asking me for a
I tried to get the SLDeviceVolumeItf interface of the RecorderObject on Android but I
I tried to get my application run at a specified time but I can't
I have tried to get tsung to work on ec2 but to no avail.
I'm working with the jQuery Sortable plugin to drag and drop images from one
JSFiddle Source If you drag and drop an item from source list box to
I tried to get an answer from server and conver it to JSONObject .
i Tried to get data from excel in java. if i execute it as
I tried to get into pyglet and opengl and come up with weird results
I tried to get avatar at single (post) page by these codes <?php echo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.