6 writes to _panningInfo
PresentationFramework (6)
System\Windows\Controls\ScrollViewer.cs (6)
1576
_panningInfo
= null;
1606
_panningInfo
= new PanningInfo()
1701
_panningInfo
= null;
1717
_panningInfo
= null;
1917
_panningInfo
= null;
1952
_panningInfo
= null;
38 references to _panningInfo
PresentationFramework (38)
System\Windows\Controls\ScrollViewer.cs (38)
1619
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : viewport.ActualWidth / viewportWidth);
1620
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : viewport.ActualHeight / viewportHeight);
1624
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : ActualWidth / viewportWidth);
1625
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : ActualHeight / viewportHeight);
1681
if (
_panningInfo
!= null)
1703
else if (
_panningInfo
.IsPanning)
1711
_panningInfo
.IsPanning = true;
1727
Debug.Assert(
_panningInfo
!= null);
1728
PanningMode panningMode =
_panningInfo
.PanningMode;
1747
double unusedX =
_panningInfo
.UnusedTranslation.X;
1748
if (!
_panningInfo
.InHorizontalFeedback &&
1753
_panningInfo
.InHorizontalFeedback = (!DoubleUtil.AreClose(unusedX, 0));
1755
double unusedY =
_panningInfo
.UnusedTranslation.Y;
1756
if (!
_panningInfo
.InVerticalFeedback &&
1761
_panningInfo
.InVerticalFeedback = (!DoubleUtil.AreClose(unusedY, 0));
1763
if (
_panningInfo
.InHorizontalFeedback ||
_panningInfo
.InVerticalFeedback)
1768
if (e.IsInertial &&
_panningInfo
.InertiaBoundaryBeginTimestamp == 0)
1770
_panningInfo
.InertiaBoundaryBeginTimestamp = Environment.TickCount;
1778
double unused = (isHorizontal ?
_panningInfo
.UnusedTranslation.X :
_panningInfo
.UnusedTranslation.Y);
1821
ScrollToHorizontalOffset(
_panningInfo
.OriginalHorizontalOffset -
1822
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerHorizontalOffet));
1824
_panningInfo
.UnusedTranslation = new Vector(unused,
_panningInfo
.UnusedTranslation.Y);
1831
ScrollToVerticalOffset(
_panningInfo
.OriginalVerticalOffset -
1832
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerVerticalOffset));
1834
_panningInfo
.UnusedTranslation = new Vector(
_panningInfo
.UnusedTranslation.X, unused);
1845
if (Math.Abs(Environment.TickCount -
_panningInfo
.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
1850
return (DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) ||
1851
DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation));
1861
Debug.Assert(
_panningInfo
!= null);
1863
PanningMode panningMode =
_panningInfo
.PanningMode;
1911
if (
_panningInfo
!= null)
1913
if (!
_panningInfo
.IsPanning && !ForceNextManipulationComplete)
1929
if (
_panningInfo
!= null)
1944
if (!e.IsInertial && !
_panningInfo
.IsPanning && !ForceNextManipulationComplete)