72 references to VirtualizationCacheLengthUnit
PresentationFramework (72)
System\Windows\Controls\GroupItem.cs (1)
272
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
System\Windows\Controls\ItemsControl.cs (1)
99
return
VirtualizationCacheLengthUnit
.Item;
System\Windows\Controls\Primitives\HierarchicalVirtualizationConstraints.cs (3)
18
VirtualizationCacheLengthUnit
cacheLengthUnit,
46
public
VirtualizationCacheLengthUnit
CacheLengthUnit
147
VirtualizationCacheLengthUnit
_cacheLengthUnit;
System\Windows\Controls\TreeViewItem.cs (1)
359
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
145
ConstructorInfo ci = typeof(VirtualizationCacheLength).GetConstructor(new Type[] { typeof(double), typeof(
VirtualizationCacheLengthUnit
) });
System\Windows\Controls\VirtualizingPanel.cs (5)
221
DependencyProperty.RegisterAttached("CacheLengthUnit", typeof(
VirtualizationCacheLengthUnit
), typeof(VirtualizingPanel),
222
new FrameworkPropertyMetadata(
VirtualizationCacheLengthUnit
.Page, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged)));
229
public static
VirtualizationCacheLengthUnit
GetCacheLengthUnit(DependencyObject element)
233
return (
VirtualizationCacheLengthUnit
)element.GetValue(CacheLengthUnitProperty);
241
public static void SetCacheLengthUnit(DependencyObject element,
VirtualizationCacheLengthUnit
value)
System\Windows\Controls\VirtualizingStackPanel.cs (60)
2200
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
3985
VirtualizationCacheLengthUnit
cacheUnit = VirtualizingPanel.GetCacheLengthUnit(this);
4311
ref
VirtualizationCacheLengthUnit
cacheUnit,
4481
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4682
ref
VirtualizationCacheLengthUnit
cacheUnit)
4684
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Page)
4701
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4721
VirtualizationCacheLengthUnit
cacheUnit,
4730
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
4753
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4754
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4755
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4756
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
4869
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4870
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4871
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4872
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
5014
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5027
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5041
ref
VirtualizationCacheLengthUnit
cacheUnit,
5045
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page after cache size is not expected here.");
5090
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5136
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5152
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5189
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5235
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5251
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5276
ref
VirtualizationCacheLengthUnit
cacheUnit)
5320
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5345
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5375
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5392
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5423
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5448
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5478
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5495
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6618
VirtualizationCacheLengthUnit
cacheUnit,
6627
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
6629
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6640
else if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6695
VirtualizationCacheLengthUnit
parentCacheUnit,
6707
ref
VirtualizationCacheLengthUnit
childCacheUnit)
6737
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6746
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6748
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6757
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6783
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6792
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6794
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6803
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6875
VirtualizationCacheLengthUnit
childCacheUnit,
6926
VirtualizationCacheLengthUnit
childItemsCacheUnit = childCacheUnit;
6970
VirtualizationCacheLengthUnit
childHeaderCacheUnit = childCacheUnit;
7054
VirtualizationCacheLengthUnit
childCacheUnit,
8100
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
8175
ref
VirtualizationCacheLengthUnit
cacheUnit,
8200
VirtualizationCacheLengthUnit
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;