15 references to ScrollUnit
PresentationFramework (15)
System\Windows\Controls\DataGrid.cs (1)
6130if (VirtualizingPanel.GetScrollUnit(this) == ScrollUnit.Item && !IsGrouping)
System\Windows\Controls\ItemsControl.cs (5)
77return ScrollUnit.Pixel; 2623if (VirtualizingPanel.GetScrollUnit(this) != ScrollUnit.Item) 2789VirtualizingPanel.GetScrollUnit(this) == ScrollUnit.Item && 3292VirtualizingStackPanel.GetScrollUnit(this) == ScrollUnit.Item); 3302VirtualizingStackPanel.GetScrollUnit(this) == ScrollUnit.Item);
System\Windows\Controls\TreeView.cs (1)
36VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(ScrollUnit.Pixel));
System\Windows\Controls\VirtualizingPanel.cs (5)
153DependencyProperty.RegisterAttached("ScrollUnit", typeof(ScrollUnit), typeof(VirtualizingPanel), 154new FrameworkPropertyMetadata(ScrollUnit.Item, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged))); 160public static ScrollUnit GetScrollUnit(DependencyObject element) 164return (ScrollUnit)element.GetValue(ScrollUnitProperty); 171public static void SetScrollUnit(DependencyObject element, ScrollUnit value)
System\Windows\Controls\VirtualizingStackPanel.cs (3)
1730if (!itemsControl.IsGrouping && VirtualizingPanel.GetScrollUnit(itemsControl) == ScrollUnit.Item) 4244ScrollUnit scrollUnit = GetScrollUnit(itemsControl); 4246IsPixelBased = mustDisableVirtualization || (scrollUnit == ScrollUnit.Pixel);