Class RepeatButton
Represents a control that raises its Click event repeatedly from the time it is pressed until it is released.
Inheritance
Inherited Members
Namespace: System.Windows.Controls.Primitives
Assembly: OpenSilver.dll
Syntax
public class RepeatButton : ButtonBase
Constructors
| Improve this Doc View SourceRepeatButton()
Initializes a new instance of the RepeatButton class.
Declaration
public RepeatButton()
Fields
| Improve this Doc View SourceDelayProperty
Gets or sets the time, in milliseconds, the RepeatButton waits when it is pressed before it starts repeating the click action. The default is 250.
Declaration
public static readonly DependencyProperty DelayProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IntervalProperty
Gets or sets the time, in milliseconds, between repetitions of the click action, as soon as repeating starts. The default is 250.
Declaration
public static readonly DependencyProperty IntervalProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDelay
Gets or sets the time, in milliseconds, the RepeatButton waits when it is pressed before it starts repeating the click action. The default is 250.
Declaration
public int Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Interval
Gets or sets the time, in milliseconds, between repetitions of the click action, as soon as repeating starts. The default is 250.
Declaration
public int Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceOnClick()
Raises InvokedAutomationEvent and call the base method to raise the Click event
Declaration
protected override void OnClick()
Overrides
| Improve this Doc View SourceOnLostMouseCapture(MouseEventArgs)
Called when this element loses mouse capture.
Declaration
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | eventArgs |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | eventArgs |