-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TableSection TextColor NullReferenceException in Mac #14027
Comments
Hi @gktval. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
What more do you need than the 7 lines of code I posted. Do you need an entire github repository just to try adding TextColor to a TableSection? What I posted is the minimal amount of code needed to reproduce the error. |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Fix TableSection TextColor NullReferenceException happen on iOS / MacCatalyst 14 and above
Description
When loading a table view in Mac, I get A NullReferenceException. This happens in Void WillDisplayHeaderView(UIKit.UIView, IntPtr).
In the stack trace, it shows this is happening at Microsoft.Maui.Controls.Handlers.Compatibility.TableViewModel.
This only happens when the TableSection TextColor is set.
Steps to Reproduce
Add the Code to your main page:
Link to public reproduction project repository
NA
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
macOS
Affected platform versions
14+
Did you find any workaround?
The workaround is not to set TableSection TextColor
Relevant log output
No response
The text was updated successfully, but these errors were encountered: