RepeatButton.Interval Property

Gets or sets the amount of time, in milliseconds, between repeats once repeating starts. The value must be non-negative.

Namespace: System.Windows.Controls.Primitives
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:

public int Interval { get; set; }
/** @property */
public int get_Interval ()

/** @property */
public void set_Interval (int value)

public function get Interval () : int

public function set Interval (value : int)

<object Interval="int" .../>

Property Value

The default value is the system key repeat rate. See System Parameters Info(SPI_GETKEYBOARDSPEED).

Identifier Field


Metadata Flags


The following example shows how to use the Interval property to set the time between repeats once the RepeatButton starts repeating.

<RepeatButton Width="100" DockPanel.Dock="Top" 
              Delay="500" Interval="100" 

<TextBlock Name="valueText" 
           Width="100" DockPanel.Dock="Top" 
           TextAlignment="Center" FontSize="16">

<RepeatButton Width="100" DockPanel.Dock="Top" 
              Delay="500" Interval="100" 

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0