| File: Virtualization\VirtualizeAnchorMode.cs | Web Access |
| Project: src\aspnetcore\src\Components\Web\src\Microsoft.AspNetCore.Components.Web.csproj (Microsoft.AspNetCore.Components.Web) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Web.Virtualization; /// <summary> /// Controls how the viewport behaves at the edges of the list when /// new items arrive. Flags can be combined to pin both edges. /// </summary> [Flags] public enum VirtualizeAnchorMode { /// <summary> /// No edge pinning. The viewport stays at its current scroll position /// regardless of item changes. /// </summary> None = 0, /// <summary> /// Pins the viewport to the start of the list. When the user is /// at or near the top and new items arrive at the start, the viewport /// stays at the top showing the newest items. /// </summary> Start = 1, /// <summary> /// Pins the viewport to the end of the list. When the user is at or near /// the bottom and new items arrive at the end, the viewport auto-scrolls /// to show them. If the user has scrolled away, auto-scroll disengages /// until they return to the bottom. /// </summary> End = 2, }