Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

RepeatButton.Delay Property

Gets or sets the amount of time, in milliseconds, the RepeatButton waits while it is pressed before it starts repeating. The value must be non-negative.

Namespace: System.Windows.Controls.Primitives
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public int Delay { get; set; }
/** @property */
public int get_Delay ()

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

public function get Delay () : int

public function set Delay (value : int)

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

Property Value

The default value is the system key press delay. See System Parameters Info(SPI_GETKEYBOARDDELAY).

Identifier Field


Metadata Flags


The following example shows how to use the Delay property to set the time that a RepeatButton waits before it 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

Community Additions

© 2015 Microsoft