ButtonBase Class
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.
Base implementation of Button logic. Hardware independent. Inherit for specific hardware handling.
public class ButtonBase : IDisposable
type ButtonBase = class
interface IDisposable
Public Class ButtonBase
Implements IDisposable
- Inheritance
-
ButtonBase
- Derived
- Implements
Constructors
ButtonBase() |
Initialization of the button. |
ButtonBase(TimeSpan, TimeSpan, TimeSpan) |
Initialization of the button. |
Properties
IsDoublePressEnabled |
Define if double press event is enabled or disabled on the button. |
IsHoldingEnabled |
Define if holding event is enabled or disabled on the button. |
IsPressed |
Define if single press event is enabled or disabled on the button. |
Methods
Dispose() |
Public dispose method for IDisposable interface. |
Dispose(Boolean) |
Cleanup resources. |
HandleButtonPressed() |
Handler for pressing the button. |
HandleButtonReleased() |
Handler for releasing the button. |
Events
ButtonDown |
Delegate for button down event. |
ButtonUp |
Delegate for button up event. |
DoublePress |
Delegate for button double pressed event. |
Holding |
Delegate for button holding event. |
Press |
Delegate for button pressed event. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for