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, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceRepeatButton()
Initializes a new instance of the RepeatButton class.
Declaration
public RepeatButton()
Fields
| Improve this Doc View SourceDelayProperty
Identifies the Delay dependency property.
Declaration
public static readonly DependencyProperty DelayProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IntervalProperty
Identifies the Interval dependency property.
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.
Declaration
public int Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The time, in milliseconds, the RepeatButton waits when it is pressed before it starts repeating the click action. The default is 500. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Delay is set to a value less than 0. |
Interval
Gets or sets the time, in milliseconds, between repetitions of the click action, as soon as repeating starts.
Declaration
public int Interval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The time, in milliseconds, between repetitions of the click action, as soon as repeating starts. The default is 33. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Interval is set to a value less than 0. |
Methods
| Improve this Doc View SourceOnClick()
Raises the Click event.
Declaration
protected override void OnClick()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
When implemented in a derived class, returns class-specific AutomationPeer implementations for the Silverlight automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer | The class-specific AutomationPeer subclass to return. |
Overrides
| Improve this Doc View SourceOnLostMouseCapture(MouseEventArgs)
Called before the LostMouseCapture event occurs to provide handling for the event in a derived class without attaching a delegate.
Declaration
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | e | A MouseEventArgs that contains the event data. |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonDown(MouseButtonEventArgs)
Raises the PointerPressed event
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e |
Overrides
| Improve this Doc View SourceOnMouseLeftButtonUp(MouseButtonEventArgs)
Raises the PointerReleased event
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e |