Skip to main content
.NET Framework Class Library
VirtualizationCacheLength Structure

Represents the measurements for the VirtualizingPanelCacheLength attached property.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
Syntax
<[%$TOPIC/hh141180_en-us_VS_110_2_0_0_0_0%](GetType([%$TOPIC/hh141180_en-us_VS_110_2_0_0_0_1%]))> _
Public Structure VirtualizationCacheLength _
	Implements [%$TOPIC/hh141180_en-us_VS_110_2_0_0_0_2%](Of VirtualizationCacheLength)
[[%$TOPIC/hh141180_en-us_VS_110_2_0_1_0_0%](typeof([%$TOPIC/hh141180_en-us_VS_110_2_0_1_0_1%]))]
public struct VirtualizationCacheLength : [%$TOPIC/hh141180_en-us_VS_110_2_0_1_0_2%]<VirtualizationCacheLength>
[[%$TOPIC/hh141180_en-us_VS_110_2_0_2_0_0%](typeof([%$TOPIC/hh141180_en-us_VS_110_2_0_2_0_1%]))]
public value class VirtualizationCacheLength : [%$TOPIC/hh141180_en-us_VS_110_2_0_2_0_2%]<VirtualizationCacheLength>
[<[%$TOPIC/hh141180_en-us_VS_110_2_0_3_0_0%]>]
[<[%$TOPIC/hh141180_en-us_VS_110_2_0_3_0_1%](typeof([%$TOPIC/hh141180_en-us_VS_110_2_0_3_0_2%]))>]
type VirtualizationCacheLength =  
    struct 
        interface [%$TOPIC/hh141180_en-us_VS_110_2_0_3_0_3%]<VirtualizationCacheLength>
    end

The VirtualizationCacheLength type exposes the following members.

Constructors
  NameDescription
Public method VirtualizationCacheLength(Double)Creates a new instance of the VirtualizationCacheLength class with a uniform cache length for each side of the viewport.
Public method VirtualizationCacheLength(Double, Double)Creates a new instance of the VirtualizationCacheLength class with the specified cache lengths for each side of the viewport.
Top
Properties
  NameDescription
Public property CacheAfterViewportGets the size of the cache before the viewport when the VirtualizingPanel is virtualizing.
Public property CacheBeforeViewportGets the size of the cache after the viewport when the VirtualizingPanel is virtualizing.
Top
Methods
  NameDescription
Public method Equals(Object)Determines whether the specified object is equal to the current VirtualizationCacheLength. (Overrides ValueTypeEquals(Object).)
Public method Equals(VirtualizationCacheLength)Determines whether the specified VirtualizationCacheLength is equal to the current VirtualizationCacheLength.
Public method GetHashCodeGets a hash code for the current VirtualizationCacheLength. (Overrides ValueTypeGetHashCode.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method ToStringReturns a string that represents the current VirtualizationCacheLength. (Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operator Static member EqualityDetermines whether the two specified VirtualizationCacheLength objects are equal.
Public operator Static member InequalityDetermines whether the two specified VirtualizationCacheLength objects are equal.
Top
Remarks

The VirtualizingPanelCacheLength 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.

Version Information

.NET Framework

Supported in: 4.5
Platforms

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.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.