Export (0) Print
Expand All

SurfaceRepeatButton Class



Represents a control that raises its Click event repeatedly from the time it is pressed until it is released.

Namespace: Microsoft.Surface.Presentation.Controls.Primitives
Assembly: Microsoft.Surface.Presentation (in Microsoft.Surface.Presentation)

'Usage

public class SurfaceRepeatButton : RepeatButton
public class SurfaceRepeatButton extends RepeatButton
public class SurfaceRepeatButton extends RepeatButton

The following code example shows how to create a SurfaceRepeatButton control.


<s:SurfaceRepeatButton 
    Name="RepeatButton" Content="Repeat" 
    Delay="500" Interval="100" 
    Click="RepeatButton_Click"/>

The SurfaceRepeatButton class represents a control that is similar to a SurfaceButton control. However, SurfaceRepeatButton objects give you control over when and how the Click event occurs. The SurfaceRepeatButton object 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.

The SurfaceRepeatButton control is used in the default template for the SurfaceScrollBar and SurfaceSlider controls to style the areas of the controls that, when touched, move the thumb.


System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Media.Visual
         System.Windows.UIElement
           System.Windows.FrameworkElement
             System.Windows.Controls.Control
               System.Windows.Controls.ContentControl
                 System.Windows.Controls.Primitives.ButtonBase
                   System.Windows.Controls.Primitives.RepeatButton
                    Microsoft.Surface.Presentation.Controls.Primitives.SurfaceRepeatButton

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Requirements

Operating System (OS)Windows 7
Software Developer Kit (SDK)Surface 2.0
.NET Framework 4
Developer environmentVisual Studio 2010, Express or full edition
Microsoft Expression Blend 4.0 (optional)
End-user hardwareDevices made for Surface 2.0, or
Windows Touch computers

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
Show:
© 2014 Microsoft