Class TouchPanel
Represents a panel that reacts to touch input on Windows 7 or newer.
public class TouchPanel : Panel, ITouchControl
- Inheritance
-
objectMarshalByRefObjectComponentControlScrollableControlPanelTouchPanel
- Implements
- Extension Methods
Properties
CreateParams
Gets the required creation parameters when the control handle is created.
protected override CreateParams CreateParams { get; }
Property Value
- CreateParams
A System.Windows.Forms.CreateParams that contains the required creation parameters when the handle to the control is created.
Methods
CreateHandle()
Creates a handle for the control.
protected override void CreateHandle()
Exceptions
- ObjectDisposedException
The object is in a disposed state.
WndProc(ref Message)
Processes Windows messages.
[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected override void WndProc(ref Message m)
Parameters
m
MessageThe Windows System.Windows.Forms.Message to process.
Events
TouchDown
Raised when the user begins touching the screen.
public event EventHandler<TouchEventArgs>? TouchDown
Event Type
- EventHandler<TouchEventArgs>
TouchMove
Raised when the user moves fingers while touching the screen.
public event EventHandler<TouchEventArgs>? TouchMove
Event Type
- EventHandler<TouchEventArgs>
TouchUp
Raised when the user stops touching the screen.
public event EventHandler<TouchEventArgs>? TouchUp
Event Type
- EventHandler<TouchEventArgs>