VirtualizationCacheLength Structure

.NET Framework 4.5

Represents the measurements for the VirtualizingPanel.CacheLength attached property.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

'Declaration
<TypeConverterAttribute(GetType(VirtualizationCacheLengthConverter))> _
Public Structure VirtualizationCacheLength _
	Implements IEquatable(Of VirtualizationCacheLength)

The VirtualizationCacheLength type exposes the following members.

  NameDescription
Public methodVirtualizationCacheLength(Double)Creates a new instance of the VirtualizationCacheLength class with a uniform cache length for each side of the viewport.
Public methodVirtualizationCacheLength(Double, Double)Creates a new instance of the VirtualizationCacheLength class with the specified cache lengths for each side of the viewport.
Top

  NameDescription
Public propertyCacheAfterViewportGets the size of the cache before the viewport when the VirtualizingPanel is virtualizing.
Public propertyCacheBeforeViewportGets the size of the cache after the viewport when the VirtualizingPanel is virtualizing.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current VirtualizationCacheLength. (Overrides ValueType.Equals(Object).)
Public methodEquals(VirtualizationCacheLength)Determines whether the specified VirtualizationCacheLength is equal to the current VirtualizationCacheLength.
Public methodGetHashCodeGets a hash code for the current VirtualizationCacheLength. (Overrides ValueType.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current VirtualizationCacheLength. (Overrides ValueType.ToString.)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether the two specified VirtualizationCacheLength objects are equal.
Public operatorStatic memberInequalityDetermines whether the two specified VirtualizationCacheLength objects are equal.
Top

The VirtualizingPanel.CacheLength attached property specifies the amount of space in which a VirtualizingPanel virtualizes the items before or after the view port (the area in which items are visible). You can specify uniform cache length my creating a VirtualizationCacheLength by using the constructor that takes a single parameter. You can use the constructor that takes two parameters to specify different values for the CacheBeforeViewport and CacheAfterViewport properties.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft