Skip to content

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

Merged

Conversation

deanchalk
Copy link

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:

  • [ x] Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • [ x] Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • [x ] Contains NO breaking changes

Other information

@ghost
Copy link

ghost commented Apr 1, 2020

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 🙌

@ghost ghost assigned michael-hawker Apr 1, 2020
@michael-hawker michael-hawker added this to the 6.1 milestone Apr 2, 2020
@michael-hawker michael-hawker mentioned this pull request Apr 2, 2020
36 tasks
Copy link
Member

@michael-hawker michael-hawker left a 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!

@ghost
Copy link

ghost commented Apr 26, 2020

This PR has been marked as "needs attention 👋" and awaiting a response from the team.

@deanchalk
Copy link
Author

@michael-hawker - I have completed the above tasks and added to my branch. Let me know if theres anything else to do :)

Copy link
Contributor

@Kyaa-dost Kyaa-dost left a 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 🎉

Copy link
Member

@michael-hawker michael-hawker left a 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. :)

…/ListViewExtensionsPage.xaml.cs


Tested removing this line, as duplicated logic, done through binding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unknown attachable member 'ListViewExtensions.Command' on element 'ListView'
4 participants