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
1640
DragTemplate alignment issue
posted

Hi

How to make the drag template's left border, rather than the center, align with the mouse cursor? Since I wrote something like this and doesn't work:

                                             <ig:DragSource.DragTemplate>
                                                <DataTemplate>
                                                    <Border HorizontalAlignment="Left" VerticalAlignment="Center" BorderThickness="2"
                                                            BorderBrush="Blue" Background="Red" Width="200" Height="30" Opacity="0.6"/>
                                                </DataTemplate>
                                            </ig:DragSource.DragTemplate>

Thank you.

  • 2151
    Verified Answer
    Offline posted

    Hello anakincn,

     

    Thank you for your question. Please look at this topic where similar issue is discussed:

    http://ko.infragistics.com/community/forums/t/80659.aspx

    There is also a solution provided in the topic.

     

    You can also vote for the same product idea at this location:

    http://ideas.infragistics.com/forums/192363-wpf/suggestions/6617525-drag-drop-framework-alignment-of-dragged-object

     

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support