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