Intersoft ClientUI Documentation
Interval Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace > UXRepeatButton Class : Interval Property






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

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property Interval As Integer
Visual Basic (Usage)Copy Code
Dim instance As UXRepeatButton
Dim value As Integer
 
instance.Interval = value
 
value = instance.Interval
C# 
[CategoryAttribute("Common Properties")]
public int Interval {get; set;}
Delphi 
public read-write property Interval: Integer; 
JScript 
CategoryAttribute("Common Properties")
public function get,set Interval : int
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property int get_Interval();
public: __property void set_Interval( 
   int value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property int Interval {
   int get();
   void set (    int value);
}

Remarks

The UXRepeatButton class represents a control that is similar to a UXButton. However, repeat buttons give you control over when and how the Click event occurs. The UXRepeatButton raises the Click event repeatedly from the time it is pressed until it is released. The Delay property determines when the event begins. You can also control the interval of the repetitions with the Interval property.

XAML Copy Code
<StackPanel>
    <Intersoft:UXRepeatButton Width="100" Delay="500" Interval="100" Click="Increase">
      Increase
    </Intersoft:UXRepeatButton>

    <TextBlock Name="valueText" Width="100"
               TextAlignment="Center" FontSize="16">
      0
    </TextBlock>

    <Intersoft:UXRepeatButton Width="100" Delay="500" Interval="100" 
                  Click="Decrease">
      Decrease
    </Intersoft:UXRepeatButton>
</StackPanel>
C# Copy Code
void Increase(object sender, RoutedEventArgs e)
{
    Int32 Num = Convert.ToInt32(valueText.Text);

    valueText.Text = ((Num + 1).ToString());
}

void Decrease(object sender, RoutedEventArgs e)
{
    Int32 Num = Convert.ToInt32(valueText.Text);

    valueText.Text = ((Num - 1).ToString());
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.