Skip to content

API review rename of AnchorMode - #67313

Merged
ilonatommy merged 4 commits into
mainfrom
rename-api-review-66799
Jun 24, 2026
Merged

API review rename of AnchorMode#67313
ilonatommy merged 4 commits into
mainfrom
rename-api-review-66799

Conversation

@ilonatommy

@ilonatommy ilonatommy commented Jun 19, 2026

Copy link
Copy Markdown
Member

Rename following the decision in #66799 (comment).

Fixes #66799

@ilonatommy ilonatommy self-assigned this Jun 19, 2026
Copilot AI review requested due to automatic review settings June 19, 2026 08:37
@ilonatommy
ilonatommy requested a review from a team as a code owner June 19, 2026 08:37
@ilonatommy ilonatommy added the area-blazor Includes: Blazor, Razor Components label Jun 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR implements the API review decision to rename VirtualizeAnchorMode.Beginning to VirtualizeAnchorMode.Start, updates Virtualize<TItem>.AnchorMode’s default accordingly, and adjusts the VirtualizeItemComparerAnalyzer to use concurrent collections.

Changes:

  • Rename VirtualizeAnchorMode.Beginning to Start, including XML docs and Virtualize<TItem>.AnchorMode default value.
  • Update Components unit tests and BasicTestApp test assets to use Start.
  • Change the analyzer’s per-operation-block tracking collections to concurrent variants.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Components/Web/test/Virtualization/VirtualizeTest.cs Updates test helper default anchor mode to Start.
src/Components/Web/src/Virtualization/VirtualizeAnchorMode.cs Renames enum member BeginningStart and updates docs.
src/Components/Web/src/Virtualization/Virtualize.cs Updates AnchorMode default and doc reference to Start.
src/Components/Web/src/PublicAPI.Unshipped.txt Updates public API baseline for the renamed enum member.
src/Components/test/testassets/BasicTestApp/VirtualizationAnchorModeWindowScroll.razor Updates UI and defaults to use Start.
src/Components/test/testassets/BasicTestApp/VirtualizationAnchorMode.razor Updates UI and defaults to use Start.
src/Components/Analyzers/src/VirtualizeItemComparerAnalyzer.cs Switches internal tracking collections to concurrent types.

Comment thread src/Components/Web/src/Virtualization/VirtualizeAnchorMode.cs
Comment thread src/Components/Analyzers/src/VirtualizeItemComparerAnalyzer.cs Outdated
Comment thread src/Components/Analyzers/src/VirtualizeItemComparerAnalyzer.cs Outdated
…elying on Roslyn's undocumented callback order. Since all state is now local to the block, it's fine to use plain Stack/List.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

@ilonatommy
ilonatommy requested a review from Youssef1313 June 24, 2026 10:25

@Youssef1313 Youssef1313 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • Analyzer change LGTM.
  • API name is changed according to the API review.

@ilonatommy
ilonatommy enabled auto-merge (squash) June 24, 2026 11:29
@ilonatommy
ilonatommy merged commit a0269e7 into main Jun 24, 2026
26 checks passed
@ilonatommy
ilonatommy deleted the rename-api-review-66799 branch June 24, 2026 12:29
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API proposal for AnchorMode

4 participants