5 writes to Duration
System.Windows.Input.Manipulations (5)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (5)
680
state.
Duration
= 0;
697
state.
Duration
= 2 * Math.Abs(state.Offset / state.InitialVelocity);
701
state.
Duration
= 0; // set to explicit 0 to clear out the fractional part
716
state.
Duration
= double.PositiveInfinity;
723
state.
Duration
= Math.Abs(state.InitialVelocity) / state.AbsoluteDeceleration;
9 references to Duration
System.Windows.Input.Manipulations (9)
System\Windows\Input\Manipulations\InertiaProcessor2D.cs (9)
699
if (DoubleUtil.IsZero(state.
Duration
))
706
state.AbsoluteDeceleration = Math.Abs(state.InitialVelocity) / state.
Duration
;
724
state.Offset = state.InitialVelocity * state.
Duration
* 0.5;
727
Debug.Assert(state.
Duration
>= 0);
938
if (timeDelta >= state.
Duration
)
941
timeDelta = state.
Duration
;
1291
",\nDuration=" + this.
Duration
;
1309
Debug.Assert(!double.IsNaN(this.
Duration
) && this.
Duration
>= 0); // can be infinity