CommunityToolkit / WindowsCommunityToolkit

The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
https://docs.microsoft.com/windows/communitytoolkit/
Other
5.9k stars 1.37k forks source link

[Question] Does the DataGrid have any inbuilt support to scroll when a target of Drag and Drop? #3865

Open omnilogix opened 3 years ago

omnilogix commented 3 years ago

Does the DataGrid have any inbuilt support to scroll when a target of Drag and Drop? I suspect no. If yes, how? If not, is there any example code for how to achieve this? With the WPF datagrid I could get access the scrollviewer and there were other helpful methods like ScrollToIndex(), ScrollToTop(), etc. The ScrollIntoView(object) is not very useful since I do not know what rows are visible, and thus do not know what should scroll into the view next. A couple of methods ScrollToNext() and ScrollToPrevious() would be great.

ghost commented 3 years ago

Hello omnilogix, thank you for your interest in Windows Community Toolkit!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible.. Other community members may also answer the question and provide feedback 🙌

Kyaa-dost commented 3 years ago

Looping in @anawishnoff @RBrid ⬆️

omnilogix commented 3 years ago

@andrewleader - per your request at the standup. this is a good example of an unanswered question. It seem that someone from MS could just post a reply. Acknowledging that a post has been made is not helpful. Feedback is critical to keep community support active. Otherwise, why do we bother to post? I think I read MS has 163,000 employees, perhaps assigning one person per repo that does daily triage is not too much to ask?

Kyaa-dost commented 3 years ago

@omnilogix I am not certain what was your discussion with @andrewleader. There are different scenarios in different issues that cause extra time depending on the severity of the issue. In terms of WCT, our internal and external community members are active in regards to triaging and resolving the issue.

omnilogix commented 3 years ago

@omnilogix I am not certain what was your discussion with @andrewleader. In this scenario, since Windows Community Toolkit does not support Datagrid directly, we are asked to triage to the Datagrid team which is mentioned above. There are different scenarios in different issues that cause extra time depending on the severity of the issue. In terms of WCT, our internal and external community members are active in regards to triaging and resolving the issue.

@Kyaa-dost - I Appreciate the response, but seriously, it's been 18 days since the question was asked. A simple yes/no answer would have allow me to move forward from this question. If this was routed to the proper team, I'm sure an answer could have been produced in just minutes.

andrewleader commented 3 years ago

Thanks Kyaa - For context, omnilogix mentioned on our Project Reunion community call that there were several threads that didn't get responses for quite a while, so I asked omnilogix to ping me on those threads so I could help make sure they get answered.

@anawishnoff @RBrid can you answer this thread?

RBrid commented 3 years ago

There is no build-in feature for auto-scrolling during a drag/drop operation.

This was my first idea:

So the possible approaches to explore involve modifying the DataGrid code.

Hope this helps. Thank you.

Kyaa-dost commented 3 years ago

Thanks, @RBrid for providing a detailed response. @omnilogix Thanks for showing your concern and hope that answered your question ⬆️ We are working with the community regularly to make certain that the community is enagaged and issues are resolved as soon as possible. We have recently established Discussion platform as well where you can collaboratively work with the community to look into questions/help or features.

Feel free to close this issue if your question was answered. Thanks!

omnilogix commented 3 years ago

@RBrid, @Kyaa-dost - Thanks for the possible solution. I have implemented something similar, but I am concerned that the implementation is brittle because some assumptions about state need to be made. Adding some ScrollTo_xxx helper methods would be a welcome addition to the control.

Kyaa-dost commented 3 years ago

@omnilogix In terms of any proposal or feature requests, you can submit the request here

ghost commented 3 years ago

Thanks omnilogix for patiently waiting while the team is still investigating the issue.

@anawishnoff @RBrid can we please have an update on this issue? Thanks

ghost commented 3 years ago

Thanks omnilogix for patiently waiting while the team is still investigating the issue.

@anawishnoff @RBrid can we please have an update on this issue? Thanks