6 writes to _panningInfo
PresentationFramework (6)
System\Windows\Controls\ScrollViewer.cs (6)
1584
_panningInfo
= null;
1614
_panningInfo
= new PanningInfo()
1709
_panningInfo
= null;
1725
_panningInfo
= null;
1925
_panningInfo
= null;
1960
_panningInfo
= null;
38 references to _panningInfo
PresentationFramework (38)
System\Windows\Controls\ScrollViewer.cs (38)
1627
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : viewport.ActualWidth / viewportWidth);
1628
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : viewport.ActualHeight / viewportHeight);
1632
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : ActualWidth / viewportWidth);
1633
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : ActualHeight / viewportHeight);
1689
if (
_panningInfo
!= null)
1711
else if (
_panningInfo
.IsPanning)
1719
_panningInfo
.IsPanning = true;
1735
Debug.Assert(
_panningInfo
!= null);
1736
PanningMode panningMode =
_panningInfo
.PanningMode;
1755
double unusedX =
_panningInfo
.UnusedTranslation.X;
1756
if (!
_panningInfo
.InHorizontalFeedback &&
1761
_panningInfo
.InHorizontalFeedback = (!DoubleUtil.AreClose(unusedX, 0));
1763
double unusedY =
_panningInfo
.UnusedTranslation.Y;
1764
if (!
_panningInfo
.InVerticalFeedback &&
1769
_panningInfo
.InVerticalFeedback = (!DoubleUtil.AreClose(unusedY, 0));
1771
if (
_panningInfo
.InHorizontalFeedback ||
_panningInfo
.InVerticalFeedback)
1776
if (e.IsInertial &&
_panningInfo
.InertiaBoundaryBeginTimestamp == 0)
1778
_panningInfo
.InertiaBoundaryBeginTimestamp = Environment.TickCount;
1786
double unused = (isHorizontal ?
_panningInfo
.UnusedTranslation.X :
_panningInfo
.UnusedTranslation.Y);
1829
ScrollToHorizontalOffset(
_panningInfo
.OriginalHorizontalOffset -
1830
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerHorizontalOffet));
1832
_panningInfo
.UnusedTranslation = new Vector(unused,
_panningInfo
.UnusedTranslation.Y);
1839
ScrollToVerticalOffset(
_panningInfo
.OriginalVerticalOffset -
1840
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerVerticalOffset));
1842
_panningInfo
.UnusedTranslation = new Vector(
_panningInfo
.UnusedTranslation.X, unused);
1853
if (Math.Abs(Environment.TickCount -
_panningInfo
.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
1858
return (DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) ||
1859
DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation));
1869
Debug.Assert(
_panningInfo
!= null);
1871
PanningMode panningMode =
_panningInfo
.PanningMode;
1919
if (
_panningInfo
!= null)
1921
if (!
_panningInfo
.IsPanning && !ForceNextManipulationComplete)
1937
if (
_panningInfo
!= null)
1952
if (!e.IsInertial && !
_panningInfo
.IsPanning && !ForceNextManipulationComplete)