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