15 references to ScrollUnit
PresentationFramework (15)
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6138
if (VirtualizingPanel.GetScrollUnit(this) ==
ScrollUnit
.Item && !IsGrouping)
src\Framework\System\Windows\Controls\ItemsControl.cs (5)
87
return
ScrollUnit
.Pixel;
2635
if (VirtualizingPanel.GetScrollUnit(this) !=
ScrollUnit
.Item)
2801
VirtualizingPanel.GetScrollUnit(this) ==
ScrollUnit
.Item &&
3232
VirtualizingStackPanel.GetScrollUnit(this) ==
ScrollUnit
.Item);
3242
VirtualizingStackPanel.GetScrollUnit(this) ==
ScrollUnit
.Item);
src\Framework\System\Windows\Controls\TreeView.cs (1)
42
VirtualizingStackPanel.ScrollUnitProperty.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(
ScrollUnit
.Pixel));
src\Framework\System\Windows\Controls\VirtualizingPanel.cs (5)
178
DependencyProperty.RegisterAttached("ScrollUnit", typeof(
ScrollUnit
), typeof(VirtualizingPanel),
179
new FrameworkPropertyMetadata(
ScrollUnit
.Item, FrameworkPropertyMetadataOptions.AffectsMeasure, new PropertyChangedCallback(OnVirtualizationPropertyChanged)));
185
public static
ScrollUnit
GetScrollUnit(DependencyObject element)
192
return (
ScrollUnit
)element.GetValue(ScrollUnitProperty);
199
public static void SetScrollUnit(DependencyObject element,
ScrollUnit
value)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (3)
1686
if (!itemsControl.IsGrouping && VirtualizingPanel.GetScrollUnit(itemsControl) ==
ScrollUnit
.Item)
4167
ScrollUnit
scrollUnit = GetScrollUnit(itemsControl);
4169
IsPixelBased = mustDisableVirtualization || (scrollUnit ==
ScrollUnit
.Pixel);