ListBox Destination Item Background

2 posts, 0 answers
  1. Josh King
    Josh King avatar
    15 posts
    Member since:
    Aug 2009

    Posted 29 Nov 2010 Link to this post

    I would like to change the color of the destination ListBoxItem when it is being dragged onto from the source.  It seems that it's easy to get the source, but how can one get the destination item?  I also need to get the destination item on the drop.    

    Thanks
  2. Josh King
    Josh King avatar
    15 posts
    Member since:
    Aug 2009

    Posted 29 Nov 2010 Link to this post

    I figured it out.  Needed to include this setter in the Item style:  telerik:RadDragAndDropManager.AllowDrop, and remove that setting from the ListBox
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
    <Setter Property="telerik:RadDragAndDropManager.AllowDrop"
                   Value="True" />
  3. DevCraft banner
Back to Top