ManipulationProcessor2D.ProcessManipulators 메서드

정의

지정된 조작자를 단일 일괄 처리 작업으로 처리합니다.

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))

매개 변수

timestamp
Int64

일괄 처리에 대한 타임스탬프(100나노초 틱)입니다.

manipulators
IEnumerable<Manipulator2D>

현재 범위에 있는 조작자 집합입니다.

예외

타임스탬프는 현재 조작에 대한 이전 타임스탬프보다 작습니다.

예제

다음 예제 OnLostMouseCapture 에서는 개체 목록이 null로 UIElement 설정된 메서드를 호출 ProcessManipulators 하도록 개체의 메서드를 재정의 Manipulator2D 합니다.

#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

설명

매개 변수 manipulators 는 빈 목록 또는 null일 수 있습니다. 이로 인해 조작자 수가 0 Completed 에 도달하면 이벤트가 발생합니다.

적용 대상