VirtualizingPanel.SetCacheLength 方法

定义

CacheLength设置附加属性。

public:
 static void SetCacheLength(System::Windows::DependencyObject ^ element, System::Windows::Controls::VirtualizationCacheLength value);
public static void SetCacheLength(System.Windows.DependencyObject element, System.Windows.Controls.VirtualizationCacheLength value);
static member SetCacheLength : System.Windows.DependencyObject * System.Windows.Controls.VirtualizationCacheLength -> unit
Public Shared Sub SetCacheLength (element As DependencyObject, value As VirtualizationCacheLength)

参数

element
DependencyObject

要设置其属性的对象。

value
VirtualizationCacheLength

虚拟化时视区 VirtualizingPanel 前后缓存的大小。

注解

缓存是视区上方或下方未进行虚拟化处理的空间。 使用缓存避免在 UI 元素滚动到视图中时生成 UI 元素。 CacheLengthUnit属性确定CacheLength使用的度量单位。

适用于