RadRepeatButton
Represents a RadRepeatButton that generates repeated click events when held down continuously. The RadRepeatButton class is a wrapper for the RadRepeatButtonElement class, transferring events to and from its corresponding element instance. The RadRepeatButtonElement contains all graphical and logical functionality and may be nested in other Telerik controls. When the button is pressed and held, it generates click events at specified intervals after an initial delay.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadRepeatButton : RadButton, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IButtonControl, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadButtonBaseRadButtonRadRepeatButton...
Implements:
Inherited Members
Constructors
public RadRepeatButton()
Properties
Gets the RadRepeatButtonElement that represents the visual element of this repeat button control. This element contains the visual styling and repeat behavior logic for the button.
[Browsable(false)]
public RadRepeatButtonElement ButtonElement { get; }
A RadRepeatButtonElement that represents the button's visual element.
Gets the default size for the repeat button control when no explicit size is specified. This size is used during layout calculations and initial control sizing.
protected override Size DefaultSize { get; }
A Size structure with default dimensions of 110x24 pixels.
Overrides:
Gets or sets the initial delay before the button starts repeating clicks when held down. This value specifies how long the button waits before beginning to generate repeated click events.
[Bindable(true)]
public int Delay { get; set; }
The delay in milliseconds before repeating starts. Must be non-negative.
Gets or sets the interval between repeated clicks when the button is held down. This value specifies the time between each repeated click event after the initial delay.
[Bindable(true)]
public int Interval { get; set; }
The interval in milliseconds between repeated clicks. Must be non-negative.
Gets or sets a value indicating whether the button responds to mnemonic characters. When true, the button can be activated using Alt + the mnemonic character defined by an ampersand (&) in the text.
public bool UseMnemonic { get; set; }
true if the button responds to mnemonic characters; otherwise, false. The default is true.
Methods
Creates the button element that represents the visual and functional core of this repeat button control. This method is called during control initialization to create the underlying RadRepeatButtonElement.
protected override RadButtonElement CreateButtonElement()
A new instance of RadRepeatButtonElement that provides the repeat functionality.
Overrides:
Raises the ButtonClick event with the specified event arguments. This method is called by the underlying button element when a repeat click occurs.
Resets theme value overrides for the BackColor property, restoring the original themed appearance. This method removes any custom BackColor overrides and gradient style settings that were previously applied through SetBackColorThemeOverrides().
protected override void ResetBackColorThemeOverrides()
Overrides:
Resets theme value overrides for the ForeColor property, restoring the original themed text appearance. This method removes any custom ForeColor overrides that were previously applied through SetForeColorThemeOverrides() and reapplies the theme to the element tree.
protected override void ResetForeColorThemeOverrides()
Overrides:
Sets theme value overrides for the BackColor property across all visual states of the button. This method applies the current BackColor to all available visual states and configures the button fill element to use a solid gradient style.
protected override void SetBackColorThemeOverrides()
Overrides:
Sets theme value overrides for the ForeColor property across all visual states of the button. This method applies the current ForeColor to all available visual states for both the button element and its text primitive to ensure consistent text color appearance.
protected override void SetForeColorThemeOverrides()
Overrides:
Events
Occurs when the repeat button generates a click event during continuous pressing. This event is fired repeatedly while the button is held down, after the initial delay and at the specified interval.
[Browsable(true)]
public event EventHandler ButtonClick