-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Making the ListExtensions feature in-line with the documentation #3209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making the ListExtensions feature in-line with the documentation #3209
Conversation
…de is consistent with the docs
Thanks deanchalk for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some hopefully minor updates needed. We should also make sure we update the doc, as it also still calls out these extensions as being something like a subclass of ListViewBase (which I think was how they worked in the past until we moved them to be attached properties).
Thanks!
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewExtensions/ListViewExtensionsPage.xaml
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.UI/Extensions/ListViewBase/ListViewExtensions.cs
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.UI/Extensions/ListViewBase/ListViewExtensions.cs
Outdated
Show resolved
Hide resolved
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewExtensions/ListViewExtensionsPage.xaml.cs
Outdated
Show resolved
Hide resolved
This PR has been marked as "needs attention 👋" and awaiting a response from the team. |
@michael-hawker - I have completed the above tasks and added to my branch. Let me know if theres anything else to do :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @deanchalk. Looks good to me 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deanchalk looks great! 🎉🎉🎉
Just one small nit. :)
Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewExtensions/ListViewExtensionsPage.xaml.cs
Outdated
Show resolved
Hide resolved
…/ListViewExtensionsPage.xaml.cs Tested removing this line, as duplicated logic, done through binding.
Fixes #3078
According to the documentation - https://docs.microsoft.com/en-us/windows/communitytoolkit/extensions/listviewextensions - the
ListViewExtensions
set of attached properties should include a 'Command' attached property. According to the git history this was never part of the code, which is unusual.Anyway, I have added all of the necessary code to support this documented feature, and updated the sample app page accordingly.
PR Type
What kind of change does this PR introduce?
Bugfix
Feature
Sample app changes
What is the current behavior?
Currently there is no Command attached property fir ListExtensions, despite there being official docs for it
What is the new behavior?
The missing Command attached property has been added, and the sample page has been updated
PR Checklist
Please check if your PR fulfills the following requirements:
Other information