VirtualizingPanel.GetCacheLength(DependencyObject) 方法

定义

获取 CacheLength 属性的值。

public:
 static System::Windows::Controls::VirtualizationCacheLength GetCacheLength(System::Windows::DependencyObject ^ element);
public static System.Windows.Controls.VirtualizationCacheLength GetCacheLength (System.Windows.DependencyObject element);
static member GetCacheLength : System.Windows.DependencyObject -> System.Windows.Controls.VirtualizationCacheLength
Public Shared Function GetCacheLength (element As DependencyObject) As VirtualizationCacheLength

参数

element
DependencyObject

要从中获取 CacheLength 附加属性的元素。

返回

VirtualizingPanel 有效时视口前后的缓存大小。

适用于