-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Description
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:
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