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
105
Silverlight Drag and Drop control: Drop Target Marker doesn’t show intermittently after DragSource DragChannels are bound
posted

The drop target marker shows up fine most of the times, but intermittently doesn't after DragSource's DragChannels are bound. Start a new browser or refresh the page could usually fix the problem. Below is the xaml markup, please advise.

Thanks.

 

                <ig:DragDropManager.DragSource>

                    <ig:DragSource IsDraggable="True" DragChannels="{Binding Channels}" DataObject="{Binding}">

                        <Interactivity:Interaction.Behaviors>

                            <behavior:DragDropCommandShim />

                        </Interactivity:Interaction.Behaviors>

                        <ig:DragSource.CopyCursorTemplate>

                            <DataTemplate >

                                <Button Background="Transparent">

                                    <Image Source="/images/ADD32.png" Height="32" Width="32"/>

                                </Button>

                            </DataTemplate>

                        </ig:DragSource.CopyCursorTemplate>

                        <ig:DragSource.MoveCursorTemplate>

                            <DataTemplate>

                                <Button Background="Transparent">

                                    <Image Source="/images/ADD32.png" Height="32" Width="32"/>

                                </Button>

                            </DataTemplate>

                        </ig:DragSource.MoveCursorTemplate>

                        <ig:DragSource.DropNotAllowedCursorTemplate>

                            <DataTemplate>

                                <Button Background="Transparent">

                                    <Image Source="/images/Delete24.png" Height="24" Width="24"/>

                                </Button>

                            </DataTemplate>

                        </ig:DragSource.DropNotAllowedCursorTemplate>

                    </ig:DragSource>

                </ig:DragDropManager.DragSource>

  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but I wasn’t able to reproduce your behavior, because I am not completely sure how you make your bindings and what is your DataContext from the code snippet you provided, so if this is still an issue for you could you please provide me with an isolated sample project where this is reproduced, so I can investigate it further for you.

     

    Feel free to write me if you have further questions.