Partager via


IXRRepeatButton (Compact 2013)

3/28/2014

This class represents a repeat-button control that raises its Click event multiple times, while that control is in a pressed state.

Syntax

class IXRRepeatButton : public IXRButtonBase

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRControl

                IXRContentControl

                    IXRButtonBase

                        IXRRepeatButton

Methods

Method

Description

IXRRepeatButton::GetDelay

Retrieves the time, in milliseconds, that the repeat button waits after it is pressed, before it starts repeating the click action.

IXRRepeatButton::GetInterval

Retrieves the time, in milliseconds, between repetitions of the click action, as soon as the repeating starts.

IXRRepeatButton::SetDelay

Sets the time, in milliseconds, that the repeat button waits after it is pressed, before it starts repeating the click action.

IXRRepeatButton::SetInterval

Sets the time, in milliseconds, between repetitions of the click action, as soon as the repeating starts.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

The IXRRepeatButton class represents a control that resembles a button. However, repeat buttons give you control over when and how the Click event occurs. A repeat button raises the Click event multiple times, while that control is in a pressed state. You can determine when the event starts by calling IXRRepeatButton::SetDelay. You can also control the interval of repetitions by calling IXRRepeatButton::SetInterval.

When you create a class instance, use an IXRRepeatButtonPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define a repeat-button control in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the RepeatButton Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.Primitives.RepeatButton

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management