Skip to content
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

ListView items don't show when NSTableView.SelectionDidChange handler added #6237

Closed
alataffective opened this issue May 21, 2019 · 1 comment
Labels
a/listview Problems with the ListView/TableView e/5 🕔 5 help wanted We welcome community contributions to any issue, but these might be a good place to start! inactive Issue is older than 6 months and needs to be retested p/macOS t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!

Comments

@alataffective
Copy link

Description

When adding a SelectionDidChange event handler to the NSTableView returned by ListViewRenderer.NativeTableView, the list items no longer display.

Steps to Reproduce

  1. Create a Xamarin.Forms application with a MacOS head.
  2. Add a ListView and populate with items.
  3. Run the application and see the items displayed.
  4. Create a ListView effect.
  5. In the MacOS implementation of the effect, add the following
    protected override void OnAttached()
    {
        var nativeTableView = ((ListViewRenderer)Container).NativeTableView;
        nativeTableView.SelectionDidChange += (sender, e) => { }; 
    }

Expected Behavior

No change.

Actual Behavior

The list items are no longer shown.

Basic Information

  • Version with issue: 4.0.0.394984-pre10
  • Platform Target Frameworks: MacOS

Screenshots

Without event handler
Screenshot 2019-05-21 at 12 44 00

With event handler
Screenshot 2019-05-21 at 12 45 02

Reproduction Link

https://github.com/alataffective/ListView-items-don-t-show-when-NSTableView.SelectionDidChange-handler-added

@alataffective alataffective added s/unverified New report that has yet to be verified t/bug 🐛 labels May 21, 2019
@pauldipietro pauldipietro added this to New in Triage May 21, 2019
@kingces95 kingces95 moved this from New to Ready For Work in Triage May 23, 2019
@samhouts samhouts moved this from Ready For Work to Needs Estimate in Triage May 23, 2019
@samhouts samhouts added a/listview Problems with the ListView/TableView e/5 🕔 5 and removed s/unverified New report that has yet to be verified labels Jul 30, 2019
@samhouts samhouts moved this from Needs Estimate to Ready For Work in Triage Jul 30, 2019
@samhouts samhouts added this to To do in Other Ready For Work Jul 30, 2019
@samhouts samhouts removed this from Ready For Work in Triage Jul 30, 2019
@samhouts samhouts added inactive Issue is older than 6 months and needs to be retested help wanted We welcome community contributions to any issue, but these might be a good place to start! up-for-grabs We welcome community contributions to any issue, but these might be a good place to start! labels Nov 21, 2019
@samhouts samhouts moved this from To do to Inactive in Other Ready For Work May 21, 2020
@samhouts samhouts added this to the 5.0.0 milestone Aug 13, 2020
@samhouts samhouts added this to To do in vNext+1 (5.0.0) Aug 14, 2020
@samhouts samhouts removed this from the 5.0.0 milestone Nov 2, 2020
@jfversluis
Copy link
Member

Taking into consideration the remaining lifetime of Xamarin.Forms, the platform this is about, the age of this issue and the traction this issue has seen I think it's unlikely that this will get fixed. If it is something that you still would like to have, please consider opening a PR. Thanks!

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2022
Other Ready For Work automation moved this from Inactive to Done Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a/listview Problems with the ListView/TableView e/5 🕔 5 help wanted We welcome community contributions to any issue, but these might be a good place to start! inactive Issue is older than 6 months and needs to be retested p/macOS t/bug 🐛 up-for-grabs We welcome community contributions to any issue, but these might be a good place to start!
Projects
Development

No branches or pull requests

5 participants