次の方法で共有


IXRSlider (Compact 2013)

3/28/2014

This class represents a slider control that the user interacts with to select from a range of values by moving an IXRThumb control along a track.

Syntax

class IXRSlider : public IXRRangeBase

Inheritance Hierarchy

IXRRangeBase

     IXRSlider

Methods

Method

Description

IXRSlider::GetIsDirectionReversed

Retrieves a value that indicates the direction of incrementing the value for this slider control.

IXRSlider::GetIsFocused

Retrieves a value that determines whether this slider control has the UI focus.

IXRSlider::GetOrientation

Retrieves the orientation of this slider control.

IXRSlider::SetIsDirectionReversed

Sets a value that indicates the direction of incrementing the value for this slider control.

IXRSlider::SetOrientation

Sets a value that determines whether this slider control has the UI focus.

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

An IXRSlider control lets a user select a value from a range of values. IXRSlider inherits additional methods from IXRRangeBase, including the methods used to add event handlers for the MaximumChanged, MinimumChanged, and ValueChanged events.

You can customize an IXRSlider control by setting its properties. The following list describes some the attributes of an IXRSlider that you can customize:

The UI events associated with a slider control belong to its base class IXRRangeBase and to the related IXRThumb control.

Note

Due to the precedence of how dependency properties are set, if the inherited Value property of the IXRSlider is animated, the user might no longer be able to set it when the animation finishes.

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

You can also define a slider 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 Slider Class on MSDN.

.NET Framework Equivalent

System.Windows.Controls.Slider

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management