ManipulationProcessor2D.ProcessManipulators Methode

Definitie

Verwerkt de opgegeven manipulators als één batchactie.

public:
 void ProcessManipulators(long timestamp, System::Collections::Generic::IEnumerable<System::Windows::Input::Manipulations::Manipulator2D> ^ manipulators);
public void ProcessManipulators(long timestamp, System.Collections.Generic.IEnumerable<System.Windows.Input.Manipulations.Manipulator2D> manipulators);
member this.ProcessManipulators : int64 * seq<System.Windows.Input.Manipulations.Manipulator2D> -> unit
Public Sub ProcessManipulators (timestamp As Long, manipulators As IEnumerable(Of Manipulator2D))

Parameters

timestamp
Int64

De tijdstempel voor de batch, in tikken van 100 nanoseconden.

manipulators
IEnumerable<Manipulator2D>

De set manipulators die momenteel binnen het bereik vallen.

Uitzonderingen

De tijdstempel is minder dan de vorige tijdstempel voor de huidige manipulatie.

Voorbeelden

In het volgende voorbeeld wordt de OnLostMouseCapture methode van een UIElement object overschreven om de ProcessManipulators methode aan te roepen met de lijst Manipulator2D met objecten die zijn ingesteld op null.

#region OnLostMouseCapture
protected override void OnLostMouseCapture(MouseEventArgs e)
{
    base.OnLostMouseCapture(e);
    manipulationProcessor.ProcessManipulators(Timestamp, null);
}
#endregion
#region Timestamp
private long Timestamp
{
    get
    {
        // Get timestamp in 100-nanosecond units.
        double nanosecondsPerTick = 1000000000.0 / System.Diagnostics.Stopwatch.Frequency;
        return (long)(System.Diagnostics.Stopwatch.GetTimestamp() / nanosecondsPerTick / 100.0);
    }
}
#endregion

Opmerkingen

De parameter manipulators kan een lege lijst of null zijn. Als dit resulteert in het aantal manipulators dat nul bereikt, wordt de Completed gebeurtenis gegenereerd.

Van toepassing op