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