<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv" -->

---
title: Blazor .NET 11: What's New in Virtualize, AnchorMode,...
description: A deep technical walkthrough of the Virtualize<TItem> component changes coming in .NET 11 RC1, based on hands-on measurement across Chrome, Firefox, and...
canonical: https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Blazor .NET 11: What's New in Virtualize, AnchorMode, and CSP Support | daily.dev
og:description: A deep technical walkthrough of the Virtualize<TItem> component changes coming in .NET 11 RC1, based on hands-on measurement across Chrome, Firefox, and...
og:url: https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv
og:image: https://api.daily.dev/og/posts/Dz8f8BliV.png
og:image:alt: Blazor .NET 11: What's New in Virtualize, AnchorMode, and CSP Support
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Blazor .NET 11: What's New in Virtualize, AnchorMode, and CSP Support

**[We Are .NET](https://daily.dev/sources/wearedotnet)** · 47 min read · 3 upvotes · 0 comments

## Summary

A deep technical walkthrough of the Virtualize<TItem> component changes coming in .NET 11 RC1, based on hands-on measurement across Chrome, Firefox, and Playwright's WebKit. Key changes include variable-height item support via running-average measurement, hybrid scroll anchoring (native CSS anchoring plus a ResizeObserver fallback for tables), a new AnchorMode enum (Start/End/None) replacing hand-written JS for edge pinning, InitialItemIndex/ScrollToItemAsync APIs for jumping to items, an OverscanCount default bump from 3 to 15, and a CSP fix that renders spacer heights via data attributes and CSSOM instead of inline styles (fixing a bug where strict style-src 'self' policies collapsed a 100,000-item list to a 1,227px scroll range on .NET 10). The piece also documents several RC1 rough edges: table rows not fully compensated after scroll-triggered renders, content shifting 53-82px after InitialItemIndex's first render, AnchorMode.End missing the bottom by 29-77px in some WebKit runs, and a docs code sample that doesn't compile.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://abp.io/community/posts/blazor-.net-11-whats-new-in-virtualize-anchormode-and-csp-support-hdpestha>

## Questions this post answers

### How does Blazor's Virtualize component avoid breaking under a strict style-src 'self' Content Security Policy in .NET 11?

Starting in .NET 11, Virtualize renders spacer heights as unitless numbers in data-blazor-virtualize-reserved-height attributes instead of inline style attributes, and a MutationObserver in blazor.web.js applies them through the CSS Object Model (CSSOM) via element.style.setProperty. Browsers don't apply style-src to CSSOM-set properties, so strict policies no longer block virtualization; on .NET 10 the same policy collapsed a 100,000-item list to a 1,227px scroll range.

_Anyone hardening a Blazor app's CSP can track framework fixes like this one on daily.dev before shipping._

### What does AnchorMode do in Blazor's Virtualize component in .NET 11?

AnchorMode is a [Flags] enum parameter (None, Start, End) that controls what happens at the edges of a virtualized list when items are inserted, not whether anchoring happens at all - keeping the reader's place is the default everywhere. Start (the default) shows new items when the user is at the very top (scrollTop < 1); End follows new items when at the very bottom (within 2px); None does neither; combinations like Start | End are allowed.

_Developers building chat, log, or feed UIs can check anchoring behavior details like this on daily.dev before choosing a mode._

### Why did the OverscanCount default change from 3 to 15 in Blazor's Virtualize component in .NET 11, and what's the trade-off?

The default overscan count increased from 3 to 15 in .NET 11 to reduce blank moments during fast scrolling and give the running average item-height calculation more items to measure from. The trade-off is more DOM elements rendered (37-38 cards visible instead of about 7) and larger ItemsProvider requests (roughly visible+30 items instead of visible+6); QuickGrid deliberately keeps OverscanCount at 3 because grid rows are heavier, and this change isn't listed on the official breaking-changes pages.

_Teams upgrading Blazor apps can watch for overscan-related performance shifts like this on daily.dev._

## Similar posts on daily.dev

- [htmxRazor v1.3.0: Data Table, Accessibility, and Modern CSS - Chris Woody Woodruff](https://daily.dev/posts/htmxrazor-v1-3-0-data-table-accessibility-and-modern-css---chris-woody-woodruff-zgss65faz) · We Are .NET · 0 upvotes · 0 comments
- [Blazor Basics: Should You Migrate to .NET 10?](https://daily.dev/posts/blazor-basics-should-you-migrate-to-net-10--edjdjxfof) · Telerik · 7 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#infrastructure](https://daily.dev/tags/infrastructure), [#.net](https://daily.dev/tags/.net), [#webassembly](https://daily.dev/tags/webassembly), [#blazor](https://daily.dev/tags/blazor)

[View this post on daily.dev](https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Blazor .NET 11: What's New in Virtualize, AnchorMode, and CSP Support","url":"https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv"},"datePublished":"2026-09-23T12:24:45.192Z","dateModified":"2026-09-23T12:25:50.181Z","description":"A deep technical walkthrough of the Virtualize\u003cTItem\u003e component changes coming in .NET 11 RC1, based on hands-on measurement across Chrome, Firefox, and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b95ea23834275faa8041c4c678d0cba1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b95ea23834275faa8041c4c678d0cba1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"We Are .NET","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"We Are .NET","logo":"https://media.daily.dev/image/upload/s--BsnVOa3i--/f_auto/v1718347410/logos/wearedotnet","url":"https://daily.dev/sources/wearedotnet"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,infrastructure,.net,webassembly,blazor","timeRequired":"PT47M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"We Are .NET","item":"https://daily.dev/sources/wearedotnet"},{"@type":"ListItem","position":3,"name":"Blazor .NET 11: What's New in Virtualize, AnchorMode, and CSP Support"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/blazor-net-11-what-s-new-in-virtualize-anchormode-and-csp-support-dz8f8bliv#faq","mainEntity":[{"@type":"Question","name":"How does Blazor's Virtualize component avoid breaking under a strict style-src 'self' Content Security Policy in .NET 11?","acceptedAnswer":{"@type":"Answer","text":"Starting in .NET 11, Virtualize renders spacer heights as unitless numbers in data-blazor-virtualize-reserved-height attributes instead of inline style attributes, and a MutationObserver in blazor.web.js applies them through the CSS Object Model (CSSOM) via element.style.setProperty. Browsers don't apply style-src to CSSOM-set properties, so strict policies no longer block virtualization; on .NET 10 the same policy collapsed a 100,000-item list to a 1,227px scroll range. Anyone hardening a Blazor app's CSP can track framework fixes like this one on daily.dev before shipping."}},{"@type":"Question","name":"What does AnchorMode do in Blazor's Virtualize component in .NET 11?","acceptedAnswer":{"@type":"Answer","text":"AnchorMode is a [Flags] enum parameter (None, Start, End) that controls what happens at the edges of a virtualized list when items are inserted, not whether anchoring happens at all - keeping the reader's place is the default everywhere. Start (the default) shows new items when the user is at the very top (scrollTop \u003c 1); End follows new items when at the very bottom (within 2px); None does neither; combinations like Start | End are allowed. Developers building chat, log, or feed UIs can check anchoring behavior details like this on daily.dev before choosing a mode."}},{"@type":"Question","name":"Why did the OverscanCount default change from 3 to 15 in Blazor's Virtualize component in .NET 11, and what's the trade-off?","acceptedAnswer":{"@type":"Answer","text":"The default overscan count increased from 3 to 15 in .NET 11 to reduce blank moments during fast scrolling and give the running average item-height calculation more items to measure from. The trade-off is more DOM elements rendered (37-38 cards visible instead of about 7) and larger ItemsProvider requests (roughly visible+30 items instead of visible+6); QuickGrid deliberately keeps OverscanCount at 3 because grid rows are heavier, and this change isn't listed on the official breaking-changes pages. Teams upgrading Blazor apps can watch for overscan-related performance shifts like this on daily.dev."}}]}
```

