Skip to content

Changing the width of dragging effect? #291

@Tennyleaz

Description

@Tennyleaz

I am using a listbox with drag drop. I am expecting all the dragging adorner effects to fit the width of my listbox.

The partial code of my xaml looks like:

<ListBox Margin="0,0,0,3" Width="auto"
         IsSynchronizedWithCurrentItem="True" AllowDrop="True"
         dd:DragDrop.UseDefaultDragAdorner="True"
         dd:DragDrop.IsDragSource="True"
         dd:DragDrop.IsDropTarget="True"
         ItemContainerStyle="{StaticResource MyListBoxStyle}">
    <ListBox.ItemTemplate>
        <DataTemplate DataType="{x:Type local:PinnedNode}">
            <local:MyItemTemplate/>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

MyItemTemplate is a custom user control.
The effect when dragging looks like:

drag drop q2

How could I control the item separator adorner (?) width? I would like it to fit the entire width of my listbox.
Thank you for any ideas.

Environment

  • GongSolutions.WPF.DragDrop 1.1.0
  • Windows OS 10 1803
  • Visual Studio 2015
  • .NET Framework 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions