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
250
Possible Drop Target offset bug
posted

The behavior that I am about to describe appeared when I upgraded from v10.3 to v11.1

My application has a 2x2 grid.  I have a DockManager located in row=1 col=1.  In one of the content panes in the DockManager, I added a DropTarget.  When I drag a component into the content pane, the drop target location seems to be offset by the width of col=0 and the height of row=0 of the grid.

I did a sanity check by moving the DockManager to row=0 and col=0 and I did not see this offset issue.  Is this a bug or am I missing something?  I did not see this in v10.3.

Thank you.

  • 8831
    posted
    Hello,
    Could you please attach a sample or send us a snippet showing how do you set up the layout and the drop target. I’ve tested it against 11.1RTM and it seems to be fine:
    Here is my code:
    <ig:XamDockManager x:Name="igXamDockManager" PinBehavior="AllPanes"
                       Grid.Row="1" Grid.Column="1">
        <ig:XamDockManager.Panes>                                               
            <ig:ContentPane Header="DragSource" Location="Left">
                <StackPanel Background="White" Orientation="Horizontal">
                    <Border>
                        <Image Height="50" Width="50" Source="find.png" Stretch="Fill">
                            <ig:DragDropManager.DragSource>
                                <ig:DragSource IsDraggable="True">
                                </ig:DragSource>
                            </ig:DragDropManager.DragSource>
                                   
                        </Image>
                    </Border>
                    <!-- Add more elements -->
                </StackPanel>
            </ig:ContentPane>
                   
            <ig:ContentPane Header="DropTarget" x:Name="rightPane1" Location="Right">               
                <Image x:Name="TargetPanel" Source="find.png" Stretch="Fill">
                    <ig:DragDropManager.DropTarget>
                        <ig:DropTarget IsDropTarget="True"
                                        DropTargetMarkerBrush="Yellow">
                        </ig:DropTarget>
                    </ig:DragDropManager.DropTarget>
                </Image>                   
            </ig:ContentPane>
                   
        </ig:XamDockManager.Panes>
    </ig:XamDockManager>
    And dragging the item over the target makes it highlighted in yellow.  
    Regards.
    Plamen.