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
50
Change border of target row (drag and drop framework)
posted

Hello.

My aim is to change the target record's border color when moving a row in xamDataGrid (drag & drop framework). So far I've got working drag and drop functionality, but I can't figure out how to change row border color of the record over which the user hold's source record.

I tried setting DropTargetStyle inside ig:DropTarget element but the target is CardPanel and it doeasn't have anything like border brush and border thickness.

As a reference project I used the DragRecordsXDG (2).zip from https://ko.infragistics.com/community/forums/f/ultimate-ui-for-wpf/68238/xamdatagrid-drag-drop-a-row-on-the-same-grid-to-order-rows but I can't attach the zip file to this post.

Thank you in advance,

Mateusz

  • 29185
    Offline posted

    Hello and thank you for contacting Infragistics. This has been previously discussed here with a provided sample
    https://www.infragistics.com/community/forums/f/ultimate-ui-for-wpf/72874/drag-drop-highlight-entire-row-when-dragging-from-source-in-xam-data-grid

    There is a custom DataRecordPresenter in App.xaml.

    DragDropRecordsBetweenGrids.zip

    • 50
      Offline posted in reply to Michael DiFilippo

      Hello, thank you for quick reply.

      I saw this particular example and unfortunately, this doesn't solve the problem. In this example, the background is changed using DropTargetMarkerBrush property and I'm looking for a way to change the border brush and border thickness of target row.

      Best regards

      • 50
        Offline posted in reply to Michael DiFilippo

        That's sad but nevertheless thank you for the information.

        • 29185
          Offline posted in reply to Mateusz Wisniewski

          Hello Mateusz,

          I tried applying a DropTargetStyle but with a custom control template with undesirable results. It appears for now we only support a marker brush.

          You can suggest new product ideas for future versions (or vote for existing ones) at <https://www.infragistics.com/community/ideas>.
          Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
          Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it.   You can also link back to this thread for additional details.

          Let me know if you have any questions.

          Michael DiFilippo
          Software Developer
          Infragistics, Inc.

      x An error occurred. Please try again or contact your administrator.
      x An error occurred. Please try again or contact your administrator.