72 references to VirtualizationCacheLengthUnit
PresentationFramework (72)
src\Framework\System\Windows\Controls\GroupItem.cs (1)
282
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
109
return
VirtualizationCacheLengthUnit
.Item;
src\Framework\System\Windows\Controls\Primitives\HierarchicalVirtualizationConstraints.cs (3)
20
VirtualizationCacheLengthUnit
cacheLengthUnit,
47
public
VirtualizationCacheLengthUnit
CacheLengthUnit
139
VirtualizationCacheLengthUnit
_cacheLengthUnit;
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
364
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
src\Framework\System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
163
ConstructorInfo ci = typeof(VirtualizationCacheLength).GetConstructor(new Type[] { typeof(double), typeof(
VirtualizationCacheLengthUnit
) });
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (5)
258
DependencyProperty.RegisterAttached("CacheLengthUnit", typeof(
VirtualizationCacheLengthUnit
), typeof(VirtualizingPanel),
259
new FrameworkPropertyMetadata(
VirtualizationCacheLengthUnit
.Page, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged)));
266
public static
VirtualizationCacheLengthUnit
GetCacheLengthUnit(DependencyObject element)
273
return (
VirtualizationCacheLengthUnit
)element.GetValue(CacheLengthUnitProperty);
281
public static void SetCacheLengthUnit(DependencyObject element,
VirtualizationCacheLengthUnit
value)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (60)
2157
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
3910
VirtualizationCacheLengthUnit
cacheUnit = VirtualizingPanel.GetCacheLengthUnit(this);
4236
ref
VirtualizationCacheLengthUnit
cacheUnit,
4405
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4592
ref
VirtualizationCacheLengthUnit
cacheUnit)
4594
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Page)
4611
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4631
VirtualizationCacheLengthUnit
cacheUnit,
4640
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
4663
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4664
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4665
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4666
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
4769
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4770
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4771
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4772
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
4904
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
4917
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
4931
ref
VirtualizationCacheLengthUnit
cacheUnit,
4935
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page after cache size is not expected here.");
4980
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5026
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5042
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5079
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5125
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5141
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5166
ref
VirtualizationCacheLengthUnit
cacheUnit)
5210
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5235
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5265
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5282
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5313
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5338
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5368
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5385
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6488
VirtualizationCacheLengthUnit
cacheUnit,
6497
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
6499
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6510
else if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6565
VirtualizationCacheLengthUnit
parentCacheUnit,
6576
ref
VirtualizationCacheLengthUnit
childCacheUnit)
6606
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6615
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6617
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6626
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6652
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6661
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6663
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6672
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6740
VirtualizationCacheLengthUnit
childCacheUnit,
6791
VirtualizationCacheLengthUnit
childItemsCacheUnit = childCacheUnit;
6835
VirtualizationCacheLengthUnit
childHeaderCacheUnit = childCacheUnit;
6919
VirtualizationCacheLengthUnit
childCacheUnit,
7950
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
8024
ref
VirtualizationCacheLengthUnit
cacheUnit,
8048
VirtualizationCacheLengthUnit
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;