Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)

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.

    Name="RepeatButton" Content="Repeat" 
    Delay="500" Interval="100" 

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.

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



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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.