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
1540
DropTargetStyle doesn't reset when cursor leaves DropTarget
posted

Please refer to the attached screen shot.

I have set the DropTargetStyle property to a Style with color Yellow.  The DropTargets are the XamTreeItems in the right window pane.  The items are shown Yellow because I previously dragged an item from the ListBox on the left and shiped it over the XamTreeItems.

What do I need to do so that when the mouse cursor leaves an item that item reverts back to its original color?

Parents
No Data
Reply
  • 1540
    posted

    Please refer to my original post in this thread and the initial reply.

    Is it correct to say that the Style must be explicitly set to a normal style for this to work right?

    If I don't initially set the style to a normal setting, then there is a default style for the control. Why won't the active style revert back to the default style whenever the cursor moves off an item?

    I'm not questioning the validity of the design here, I'm just trying to get a better understanding of how things work and especially to verify the accuracy of my understanding.  Any help will be greatly appreciated.

Children