VirtualizationCacheLength Structure

.NET Framework (current version)
 

Represents the measurements for the VirtualizingPanel.CacheLength attached property.

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

[TypeConverterAttribute(typeof(VirtualizationCacheLengthConverter))]
public struct VirtualizationCacheLength : IEquatable<VirtualizationCacheLength>

NameDescription
System_CAPS_pubmethodVirtualizationCacheLength(Double)

Creates a new instance of the VirtualizationCacheLength class with a uniform cache length for each side of the viewport.

System_CAPS_pubmethodVirtualizationCacheLength(Double, Double)

Creates a new instance of the VirtualizationCacheLength class with the specified cache lengths for each side of the viewport.

NameDescription
System_CAPS_pubpropertyCacheAfterViewport

Gets the size of the cache before the viewport when the VirtualizingPanel is virtualizing.

System_CAPS_pubpropertyCacheBeforeViewport

Gets the size of the cache after the viewport when the VirtualizingPanel is virtualizing.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current VirtualizationCacheLength.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodEquals(VirtualizationCacheLength)

Determines whether the specified VirtualizationCacheLength is equal to the current VirtualizationCacheLength.

System_CAPS_pubmethodGetHashCode()

Gets a hash code for the current VirtualizationCacheLength.(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current VirtualizationCacheLength.(Overrides ValueType.ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(VirtualizationCacheLength, VirtualizationCacheLength)

Determines whether the two specified VirtualizationCacheLength objects are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(VirtualizationCacheLength, VirtualizationCacheLength)

Determines whether the two specified VirtualizationCacheLength objects are equal.

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
Available since 4.5

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

Return to top
Show: