Interval Property
Collapse the table of content
Expand the table of content

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:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[BindableAttribute(true)] 
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

IntervalProperty

Metadata Flags

None

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" 
              Click="Increase">
  Increase
</RepeatButton>

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

<RepeatButton Width="100" DockPanel.Dock="Top" 
              Delay="500" Interval="100" 
              Click="Decrease">
  Decrease
</RepeatButton>

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

ADD
Show:
© 2016 Microsoft