Class RepeatButton
Represents a control that raises its Click event repeatedly when it is pressed and held.
public class RepeatButton : Button, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue, ICommandSource
- Inheritance
-
RepeatButton
- Implements
- Inherited Members
- Extension Methods
Constructors
RepeatButton()
public RepeatButton()
Fields
DelayProperty
Defines the Delay property.
public static readonly StyledProperty<int> DelayProperty
Field Value
IntervalProperty
Defines the Interval property.
public static readonly StyledProperty<int> IntervalProperty
Field Value
Properties
Delay
Gets or sets the amount of time, in milliseconds, to wait before repeating begins.
public int Delay { get; set; }
Property Value
Interval
Gets or sets the amount of time, in milliseconds, of repeating clicks.
public int Interval { get; set; }
Property Value
Methods
OnKeyDown(KeyEventArgs)
Called before the KeyDown event occurs.
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
KeyEventArgsThe event args.
OnKeyUp(KeyEventArgs)
Called before the KeyUp event occurs.
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
KeyEventArgsThe event args.
OnPointerPressed(PointerPressedEventArgs)
Called before the PointerPressed event occurs.
protected override void OnPointerPressed(PointerPressedEventArgs e)
Parameters
e
PointerPressedEventArgsThe event args.
OnPointerReleased(PointerReleasedEventArgs)
Called before the PointerReleased event occurs.
protected override void OnPointerReleased(PointerReleasedEventArgs e)
Parameters
e
PointerReleasedEventArgsThe event args.
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.