TouchDevice.OnCapture(IInputElement, CaptureMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a touch is captured to an element.
protected:
virtual void OnCapture(System::Windows::IInputElement ^ element, System::Windows::Input::CaptureMode captureMode);
protected virtual void OnCapture (System.Windows.IInputElement element, System.Windows.Input.CaptureMode captureMode);
abstract member OnCapture : System.Windows.IInputElement * System.Windows.Input.CaptureMode -> unit
override this.OnCapture : System.Windows.IInputElement * System.Windows.Input.CaptureMode -> unit
Protected Overridable Sub OnCapture (element As IInputElement, captureMode As CaptureMode)
Parameters
- element
- IInputElement
The element that captures the touch input.
- captureMode
- CaptureMode
The capture policy.
Remarks
The OnCapture method has no default implementation. It can be overridden in a derived class to perform any actions that are required when the touch input is captured.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.