4 references to ValueFromDistance
PresentationFramework (4)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
337
double valueDelta = Track.
ValueFromDistance
(horizontalDragDelta, verticalDragDelta);
System\Windows\Controls\Primitives\Track.cs (2)
76
val = Value +
ValueFromDistance
(pt.X - ThumbCenterOffset, pt.Y - (RenderSize.Height * 0.5));
80
val = Value +
ValueFromDistance
(pt.X - (RenderSize.Width * 0.5), pt.Y - ThumbCenterOffset);
System\Windows\Controls\Slider.cs (1)
873
double newValue = Value + Track.
ValueFromDistance
(e.HorizontalChange, e.VerticalChange);