Intersoft ClientUI Documentation
UXRepeatButton Class
Members  See Also  Send Feedback
Intersoft.Client.UI.Aqua Namespace : UXRepeatButton Class






Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.

Object Model

UXRepeatButton Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.")>
Public Class UXRepeatButton 
   Inherits UXButton
   Implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Visual Basic (Usage)Copy Code
Dim instance As UXRepeatButton
C# 
[DescriptionAttribute("Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.")]
public class UXRepeatButton : UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
Delphi 
public class UXRepeatButton = class(UXButton, IControl, IFramework, ILicensing, INavigationSource, INavigationSupport, ICommandSource, IKeyboardFocus)
JScript 
DescriptionAttribute("Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.")
public class UXRepeatButton extends UXButton implements IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus 
Managed Extensions for C++ 
[DescriptionAttribute("Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.")]
public __gc class UXRepeatButton : public UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  
C++/CLI 
[DescriptionAttribute("Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.")]
public ref class UXRepeatButton : public UXButton, IControlIFramework, ILicensing, INavigationSourceINavigationSupportICommandSourceIKeyboardFocus  

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());
}

The UXRepeatButton is inherited from UXButton, therefore it inherited all characteristic of UXButton including Navigation and Commanding. To learn more about UXButton see UXButton Overview.

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
      System.Windows.UIElement
         System.Windows.FrameworkElement
            System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                  System.Windows.Controls.Primitives.ButtonBase
                     System.Windows.Controls.Button
                        Intersoft.Client.Framework.ISButton
                           Intersoft.Client.UI.Aqua.UXButton
                              Intersoft.Client.UI.Aqua.UXRepeatButton
                                 Intersoft.Client.UI.Aqua.UXFlatRepeatButton

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.