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
148
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)
2202
VirtualizationCacheLengthUnit
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
3987
VirtualizationCacheLengthUnit
cacheUnit = VirtualizingPanel.GetCacheLengthUnit(this);
4313
ref
VirtualizationCacheLengthUnit
cacheUnit,
4483
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4684
ref
VirtualizationCacheLengthUnit
cacheUnit)
4686
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Page)
4703
cacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
4723
VirtualizationCacheLengthUnit
cacheUnit,
4732
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
4755
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4756
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4757
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4758
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
4871
pixelSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport * approxSizeOfLogicalUnit : cacheLength.CacheBeforeViewport;
4872
pixelSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport * approxSizeOfLogicalUnit : cacheLength.CacheAfterViewport;
4873
logicalSizeBeforeViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheBeforeViewport : cacheLength.CacheBeforeViewport / approxSizeOfLogicalUnit;
4874
logicalSizeAfterViewport = (cacheUnit ==
VirtualizationCacheLengthUnit
.Item) ? cacheLength.CacheAfterViewport : cacheLength.CacheAfterViewport / approxSizeOfLogicalUnit;
5016
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5029
ref
VirtualizationCacheLengthUnit
cacheLengthUnit)
5043
ref
VirtualizationCacheLengthUnit
cacheUnit,
5047
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page after cache size is not expected here.");
5092
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5138
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5154
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5191
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5237
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5253
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5278
ref
VirtualizationCacheLengthUnit
cacheUnit)
5322
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5347
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5377
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5394
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5425
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5450
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5480
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
5497
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6620
VirtualizationCacheLengthUnit
cacheUnit,
6629
Debug.Assert(cacheUnit !=
VirtualizationCacheLengthUnit
.Page, "Page cacheUnit is not expected here.");
6631
if (cacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6642
else if (cacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6697
VirtualizationCacheLengthUnit
parentCacheUnit,
6709
ref
VirtualizationCacheLengthUnit
childCacheUnit)
6739
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6748
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6750
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6759
childCacheUnit =
VirtualizationCacheLengthUnit
.Pixel;
6785
if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Item)
6794
childCacheUnit =
VirtualizationCacheLengthUnit
.Item;
6796
else if (parentCacheUnit ==
VirtualizationCacheLengthUnit
.Pixel)
6805
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;