콘텐츠로 이동

ScrollableItemsBase class

이 콘텐츠는 아직 번역되지 않았습니다.

Base class for scrollable items controls: hosts a ScrollViewer over an IItemsPresenter and provides item-binding generation, deferred scroll-into-view, a pending tab-focus helper, and shared list chrome. Virtualization is a presenter concern, not this base.

Guide: C# Markup reference: Listbox

public abstract class ScrollableItemsBase : Control, ISubtreeInvalidationHost
name description
HorizontalOffset { get; } Gets the current horizontal scroll offset in DIPs. Observable: it settles during layout, so a value read straight after mutating the items still reports the previous position.
VerticalOffset { get; } Gets the current vertical scroll offset in DIPs. Observable: it settles during layout, so a value read straight after mutating the items still reports the previous position.
event ScrollChanged Raised when the scroll offset, extent, or viewport changes.
static readonly HorizontalOffsetProperty
static readonly VerticalOffsetProperty