Intersoft ClientUI Documentation
UXRepeatButton Class
Members 



Represents a button control supporting repeat behavior on mouse or keyboard gesture with customizable display mode, keyboard support and routed command.
Object Model
UXRepeatButton ClassISFramework ClassStylishLabel Class
Syntax
<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 Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocus 
Dim instance As UXRepeatButton
[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, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocus  
[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, Intersoft.Client.Framework.IControlIntersoft.Client.Framework.IFramework, Intersoft.Client.Framework.ILicensing, Intersoft.Client.Framework.INavigationSourceIntersoft.Client.Framework.INavigationSupportIntersoft.Client.Framework.Input.ICommandSourceIntersoft.Client.Framework.Input.IKeyboardFocus  
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXRepeatButton Members
Intersoft.Client.UI.Aqua Namespace

Send Feedback