72 references to VirtualizationCacheLengthUnit
PresentationFramework (72)
System\Windows\Controls\GroupItem.cs (1)
280
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
System\Windows\Controls\ItemsControl.cs (1)
108
return
VirtualizationCacheLengthUnit
.Item;
System\Windows\Controls\Primitives\HierarchicalVirtualizationConstraints.cs (3)
18
VirtualizationCacheLengthUnit
cacheLengthUnit,
46
public
VirtualizationCacheLengthUnit
CacheLengthUnit
148
VirtualizationCacheLengthUnit
_cacheLengthUnit;
System\Windows\Controls\TreeViewItem.cs (1)
363
if (value.CacheLengthUnit ==
VirtualizationCacheLengthUnit
.Page)
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
152
ConstructorInfo ci = typeof(VirtualizationCacheLength).GetConstructor(new Type[] { typeof(double), typeof(
VirtualizationCacheLengthUnit
) });
System\Windows\Controls\VirtualizingPanel.cs (5)
227
DependencyProperty.RegisterAttached("CacheLengthUnit", typeof(
VirtualizationCacheLengthUnit
), typeof(VirtualizingPanel),
228
new FrameworkPropertyMetadata(
VirtualizationCacheLengthUnit
.Page, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged)));
235
public static
VirtualizationCacheLengthUnit
GetCacheLengthUnit(DependencyObject element)
239
return (
VirtualizationCacheLengthUnit
)element.GetValue(CacheLengthUnitProperty);
247
public static void SetCacheLengthUnit(DependencyObject element,
VirtualizationCacheLengthUnit
value)
System\Windows\Controls\VirtualizingStackPanel.cs (60)
2207
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
3992
VirtualizationCacheLengthUnit
cacheUnit = VirtualizingPanel.GetCacheLengthUnit(this);
4318
ref
VirtualizationCacheLengthUnit
cacheUnit,
4488
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4689
ref
VirtualizationCacheLengthUnit
cacheUnit)
4691
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Page)
4708
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4728
VirtualizationCacheLengthUnit
cacheUnit,
4737
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
4760
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4761
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4762
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4763
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
4876
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4877
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4878
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4879
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
5021
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5034
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5048
ref
VirtualizationCacheLengthUnit
cacheUnit,
5052
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page after cache size is not expected here.");
5097
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5143
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5159
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5196
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5242
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5258
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5283
ref
VirtualizationCacheLengthUnit
cacheUnit)
5327
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5352
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5382
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5399
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5430
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5455
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5485
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5502
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6625
VirtualizationCacheLengthUnit
cacheUnit,
6634
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
6636
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6647
else if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6702
VirtualizationCacheLengthUnit
parentCacheUnit,
6714
ref
VirtualizationCacheLengthUnit
childCacheUnit)
6744
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6753
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6755
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6764
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6790
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6799
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6801
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6810
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6880
VirtualizationCacheLengthUnit
childCacheUnit,
6931
VirtualizationCacheLengthUnit
childItemsCacheUnit = childCacheUnit;
6975
VirtualizationCacheLengthUnit
childHeaderCacheUnit = childCacheUnit;
7059
VirtualizationCacheLengthUnit
childCacheUnit,
8105
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
8180
ref
VirtualizationCacheLengthUnit
cacheUnit,
8205
VirtualizationCacheLengthUnit
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;