6 writes to _panningInfo
PresentationFramework (6)
System\Windows\Controls\ScrollViewer.cs (6)
1578
_panningInfo
= null;
1608
_panningInfo
= new PanningInfo()
1703
_panningInfo
= null;
1719
_panningInfo
= null;
1919
_panningInfo
= null;
1954
_panningInfo
= null;
38 references to _panningInfo
PresentationFramework (38)
System\Windows\Controls\ScrollViewer.cs (38)
1621
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : viewport.ActualWidth / viewportWidth);
1622
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : viewport.ActualHeight / viewportHeight);
1626
_panningInfo
.DeltaPerHorizontalOffet = (DoubleUtil.AreClose(viewportWidth, 0) ? 0 : ActualWidth / viewportWidth);
1627
_panningInfo
.DeltaPerVerticalOffset = (DoubleUtil.AreClose(viewportHeight, 0) ? 0 : ActualHeight / viewportHeight);
1683
if (
_panningInfo
!= null)
1705
else if (
_panningInfo
.IsPanning)
1713
_panningInfo
.IsPanning = true;
1729
Debug.Assert(
_panningInfo
!= null);
1730
PanningMode panningMode =
_panningInfo
.PanningMode;
1749
double unusedX =
_panningInfo
.UnusedTranslation.X;
1750
if (!
_panningInfo
.InHorizontalFeedback &&
1755
_panningInfo
.InHorizontalFeedback = (!DoubleUtil.AreClose(unusedX, 0));
1757
double unusedY =
_panningInfo
.UnusedTranslation.Y;
1758
if (!
_panningInfo
.InVerticalFeedback &&
1763
_panningInfo
.InVerticalFeedback = (!DoubleUtil.AreClose(unusedY, 0));
1765
if (
_panningInfo
.InHorizontalFeedback ||
_panningInfo
.InVerticalFeedback)
1770
if (e.IsInertial &&
_panningInfo
.InertiaBoundaryBeginTimestamp == 0)
1772
_panningInfo
.InertiaBoundaryBeginTimestamp = Environment.TickCount;
1780
double unused = (isHorizontal ?
_panningInfo
.UnusedTranslation.X :
_panningInfo
.UnusedTranslation.Y);
1823
ScrollToHorizontalOffset(
_panningInfo
.OriginalHorizontalOffset -
1824
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerHorizontalOffet));
1826
_panningInfo
.UnusedTranslation = new Vector(unused,
_panningInfo
.UnusedTranslation.Y);
1833
ScrollToVerticalOffset(
_panningInfo
.OriginalVerticalOffset -
1834
Math.Round(PanningRatio * cumulativeTranslation /
_panningInfo
.DeltaPerVerticalOffset));
1836
_panningInfo
.UnusedTranslation = new Vector(
_panningInfo
.UnusedTranslation.X, unused);
1847
if (Math.Abs(Environment.TickCount -
_panningInfo
.InertiaBoundaryBeginTimestamp) < PanningInfo.InertiaBoundryMinimumTicks)
1852
return (DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) ||
1853
DoubleUtil.GreaterThanOrClose(Math.Abs(
_panningInfo
.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation));
1863
Debug.Assert(
_panningInfo
!= null);
1865
PanningMode panningMode =
_panningInfo
.PanningMode;
1913
if (
_panningInfo
!= null)
1915
if (!
_panningInfo
.IsPanning && !ForceNextManipulationComplete)
1931
if (
_panningInfo
!= null)
1946
if (!e.IsInertial && !
_panningInfo
.IsPanning && !ForceNextManipulationComplete)