6 writes to _panningInfo
PresentationFramework (6)
src\Framework\System\Windows\Controls\ScrollViewer.cs (6)
1630
_panningInfo
= null;
1660
_panningInfo
= new PanningInfo()
1755
_panningInfo
= null;
1771
_panningInfo
= null;
1971
_panningInfo
= null;
2006
_panningInfo
= null;
38 references to _panningInfo
PresentationFramework (38)
src\Framework\System\Windows\Controls\ScrollViewer.cs (38)
1673
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : viewport.ActualWidth / viewportWidth);
1674
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : viewport.ActualHeight / viewportHeight);
1678
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : ActualWidth / viewportWidth);
1679
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : ActualHeight / viewportHeight);
1735
if (
_panningInfo
!= null)
1757
else if (
_panningInfo
.IsPanning)
1765
_panningInfo
.IsPanning = true;
1781
Debug.Assert(
_panningInfo
!= null);
1782
PanningMode panningMode =
_panningInfo
.PanningMode;
1801
double unusedX =
_panningInfo
.UnusedTranslation.X;
1802
if (!
_panningInfo
.InHorizontalFeedback &&
1807
_panningInfo
.InHorizontalFeedback = (!DoubleUtil.AreClose(unusedX, 0));
1809
double unusedY =
_panningInfo
.UnusedTranslation.Y;
1810
if (!
_panningInfo
.InVerticalFeedback &&
1815
_panningInfo
.InVerticalFeedback = (!DoubleUtil.AreClose(unusedY, 0));
1817
if (
_panningInfo
.InHorizontalFeedback ||
_panningInfo
.InVerticalFeedback)
1822
if (e.IsInertial &&
_panningInfo
.InertiaBoundaryBeginTimestamp == 0)
1824
_panningInfo
.InertiaBoundaryBeginTimestamp = Environment.TickCount;
1832
double unused = (isHorizontal ?
_panningInfo
.UnusedTranslation.X :
_panningInfo
.UnusedTranslation.Y);
1875
ScrollToHorizontalOffset(
_panningInfo
.OriginalHorizontalOffset -
1876
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerHorizontalOffet));
1878
_panningInfo
.UnusedTranslation = new Vector(unused,
_panningInfo
.UnusedTranslation.Y);
1885
ScrollToVerticalOffset(
_panningInfo
.OriginalVerticalOffset -
1886
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerVerticalOffset));
1888
_panningInfo
.UnusedTranslation = new Vector(
_panningInfo
.UnusedTranslation.X, unused);
1899
if (Math.Abs(Environment.TickCount -
_panningInfo
.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
1904
return (DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) ||
1905
DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation));
1915
Debug.Assert(
_panningInfo
!= null);
1917
PanningMode panningMode =
_panningInfo
.PanningMode;
1965
if (
_panningInfo
!= null)
1967
if (!
_panningInfo
.IsPanning && !ForceNextManipulationComplete)
1983
if (
_panningInfo
!= null)
1998
if (!e.IsInertial && !
_panningInfo
.IsPanning && !ForceNextManipulationComplete)