Skip to content

Comments

Obsolete TableView#28302

Merged
rmarinho merged 4 commits intonet10.0from
obsolete-tableview
Mar 12, 2025
Merged

Obsolete TableView#28302
rmarinho merged 4 commits intonet10.0from
obsolete-tableview

Conversation

@jfversluis
Copy link
Member

Description of Change

Mark TableView as obsolete for .NET 10

@jfversluis jfversluis added this to the .NET 10.0-preview2 milestone Mar 11, 2025
Copilot AI review requested due to automatic review settings March 11, 2025 09:32
@jfversluis jfversluis requested a review from a team as a code owner March 11, 2025 09:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

The purpose of this pull request is to mark TableView as obsolete for .NET 10. This change is implemented by adding an Obsolete attribute to TableView and updating various compatibility and test files to suppress CS0618 warnings around its usage.

  • Added the Obsolete attribute and message in TableView.cs.
  • Inserted #pragma warning disable/restore directives in renderers, extensions, and tests to prevent CS0618 warnings.
  • Updated test cases and handler registrations to reflect the deprecation of TableView.

Reviewed Changes

File Description
src/Controls/tests/DeviceTests/TestCases/ControlsViewTypesTestCases.cs Added pragmas around TableView usage in test cases.
src/Controls/src/Core/Compatibility/Handlers/TableView/Android/TableViewRenderer.cs Inserted pragma directives to suppress warnings in the renderer.
src/Controls/src/Core/Internals/CellExtensions.cs Added pragma directives where TableView methods are called.
src/Controls/src/Core/Compatibility/iOS/Extensions/CellExtensions.cs Wrapped TableView-related usage with pragma directives.
src/Controls/tests/DeviceTests/Memory/MemoryTests.cs Updated test cases to disable obsolete warning for TableView.
src/Controls/src/Core/Hosting/AppHostBuilderExtensions.cs Suppressed CS0618 warnings when adding TableView handlers.
src/Controls/src/Core/Compatibility/Handlers/ListView/Android/ViewCellRenderer.cs Added multiple pragma directives around TableView usage.
src/Controls/tests/DeviceTests/Elements/Entry/EntryTests.iOS.cs Disabled warnings for TableView usage within test cases.
src/Controls/src/Core/Compatibility/Handlers/TableView/Android/TableViewModelRenderer.cs Updated constructor and member access with pragma suppression.
src/Controls/src/Core/TableView/TableView.cs Marked TableView as obsolete with an appropriate message.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewRenderer.cs Applied pragma directives in the iOS renderer for TableView.
src/Controls/src/Core/Compatibility/Handlers/TableView/iOS/TableViewModelRenderer.cs Wrapped TableView references with pragma directives to suppress warnings.

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

@dotnet-policy-service
Copy link
Contributor

🚨 API change(s) detected @davidbritch FYI

jsuarezruiz

This comment was marked as outdated.

@jfversluis jfversluis requested a review from PureWeen March 11, 2025 10:28
@jfversluis jfversluis moved this from Todo to Ready To Review in MAUI SDK Ongoing Mar 11, 2025
@rmarinho
Copy link
Member

/backport to release/10.0.1xx-preview2

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx-preview2: https://github.com/dotnet/maui/actions/runs/13796801133

@rmarinho rmarinho merged commit 6caf56c into net10.0 Mar 12, 2025
98 of 123 checks passed
@github-project-automation github-project-automation bot moved this from Ready To Review to Done in MAUI SDK Ongoing Mar 12, 2025
@rmarinho rmarinho deleted the obsolete-tableview branch March 12, 2025 12:18
@rmarinho rmarinho self-assigned this Mar 12, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants