Windows phone slider control




















Slider Button 2 or 4 Thumb 1 List Item 0 or more. The value of this property must be unique among all peer elements in the raw view of the UI Automation tree. If the control can receive keyboard focus, it must support this property. The children buttons and thumb of a slider control should never take the focus.

The focus should always remain on the slider control itself. If there is a static text label associated with the control, this property must expose a reference to that control. If the text control is a subcomponent of another control, it will not have a LabeledBy property set. Localized string corresponding to the Slider control type.

Collectives on Stack Overflow. Learn more. Asked 9 years, 8 months ago. Active 9 years, 8 months ago. Viewed times. Improve this question. Add a comment.

Active Oldest Votes. Improve this answer. Paul Marques Paul Marques 3 3 silver badges 14 14 bronze badges. TextInput Occurs when a UI element gets text in a device-independent manner.

Unloaded Occurs when this object is no longer connected to the main object tree. ValueChanged Occurs when the range value changes. OrientationProperty Identifies the Orientation dependency property. Remarks A Slider control lets users select a value from a range of values. The following list describes some of the attributes of a Slider that you can customize: The orientation of the Slider, either horizontal or vertical with the Orientation property. For more information about how to customize a Slider control, see the individual member.

Note: Due to the precedence of how dependency properties are set, if the Value property of the Slider is animated, the user may no longer be able set it when the animation finishes. Note: Setting a visual property will only have an effect if that property is both present in Slider control's default template and is set by using a TemplateBinding. Examples The following code example shows several slider controls and how to handle the ValueChanged event.

Run this sample Imports System Imports System. Windows Imports System. NewValue Me. Windows; using System. NewValue ; this. Platforms For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers. See Also Reference System. Controls Namespace. Controls and Dialog Boxes. Getting Started with Controls.

Slider Styles and Templates. In this article. Gets the rendered height of a FrameworkElement. Gets the rendered width of a FrameworkElement. Gets or sets a value that determines whether this UIElement can be a drop target for purposes of Silverlight drag-and-drop operations. Gets or sets a brush that provides the background of the control. Gets or sets a brush that describes the border background of a control. Gets or sets the border thickness of a control. Gets or sets a value that indicates that rendered content should be cached when possible.

Gets or sets the distance between characters of text in the control measured in ths of the font size. Gets or sets the Geometry used to define the outline of the contents of a UIElement. Gets or sets the cursor image that displays while the mouse pointer is over a FrameworkElement. Gets or sets the data context for a FrameworkElement when it participates in data binding. Gets or sets the key that references the default style for the control. Gets the size that this UIElement computed during the measure pass of the layout process.

Gets the Dispatcher this object is associated with. Gets or sets the pixel shader effect to use for rendering this UIElement. Gets or sets the direction that text and other user interface elements flow within any parent element that controls their layout. Gets or sets the font used to display text in the control. Gets or sets the size of the text in this control. Gets or sets the degree to which a font is condensed or expanded on the screen.

Gets or sets the style in which the text is rendered. Gets or sets the thickness of the specified font. Gets or sets a brush that describes the foreground color. Gets or sets the suggested height of a FrameworkElement. Gets or sets the horizontal alignment characteristics that are applied to a FrameworkElement when it is composed in a layout parent, such as a panel or items control. Gets or sets the horizontal alignment of the control's content.

Gets or sets a value indicating whether the user can interact with the control. Gets or sets whether the contained area of this UIElement can return true values for hit testing. Gets or sets a value that indicates whether a control is included in tab navigation. Gets or sets a value to be added to or subtracted from the Value of a RangeBase control. Gets or sets the outer margin of a FrameworkElement.

Gets or sets the maximum height constraint of a FrameworkElement. Gets or sets the highest possible Value of the range element. Gets or sets the maximum width constraint of a FrameworkElement. Gets or sets the minimum height constraint of a FrameworkElement. Gets or sets the Minimum possible Value of the range element. Gets or sets the minimum width constraint of a FrameworkElement. Gets or sets the identifying name of the object.

Gets or sets the degree of the object's opacity. Gets or sets the brush used to alter the opacity of regions of this object. Gets or sets the padding inside a control. Gets the parent object of this FrameworkElement in the object tree. Gets or sets the perspective projection 3-D effect to apply when rendering this UIElement. Gets the final render size of a UIElement. Gets or sets transform information that affects the rendering position of a UIElement.

Gets or sets the origin point of any possible render transform declared by RenderTransform , relative to the bounds of the UIElement. Gets the locally defined resource dictionary. Gets or sets a Value to be added to or subtracted from the Value of a RangeBase control. Gets or sets an instance Style that is applied for this object during rendering. Gets or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.

Gets or sets a value that modifies how tabbing and TabIndex work for this control. Gets or sets an arbitrary object value that can be used to store custom information about this object. Gets or sets a control template. Gets the collection of triggers for animations that are defined for a FrameworkElement. Gets or sets a value that determines whether rendering for the object and its visual subtree should use rounding behavior that aligns rendering to whole pixels.

Gets or sets the current setting of the range control, which may be coerced. Gets or sets the vertical alignment characteristics that are applied to a FrameworkElement when it is composed in a parent object such as a panel or items control. Gets or sets the vertical alignment of the control's content. Gets or sets the visibility of a UIElement. Gets or sets the width of a FrameworkElement.

Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Loads the relevant control template so that its parts can be referenced. Positions child objects and determines a size for a UIElement. Provides the behavior for the Arrange pass of Silverlight layout. Invoked when an unhandled QueryContinueDrag attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled QueryCursor attached event reaches an element in its route that is derived from this class. When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

Raises the SizeChanged event, using the specified information as part of the eventual event data. Invoked when an unhandled StylusButtonDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusButtonUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusEnter attached event is raised by this element.

Invoked when an unhandled StylusInAirMove attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusInRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusLeave attached event is raised by this element. Invoked when an unhandled StylusMove attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusOutOfRange attached event reaches an element in its route that is derived from this class. Invoked when an unhandled StylusSystemGesture attached event reaches an element in its route that is derived from this class.

Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. Invoked when an unhandled TextInput attached event reaches an element in its route that is derived from this class. Provides class handling for the DragCompleted event that occurs when the user stops dragging the Thumb of the Slider. Provides class handling for the DragDelta event that occurs when the user drags the Thumb of the Slider. Provides class handling for the DragStarted event that occurs when the user starts to drag the Thumb of the Slider.

Invoked whenever an unhandled ToolTipClosing routed event reaches this class in its route. Invoked whenever the ToolTipOpening routed event reaches this class in its route. Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element. Provides class handling for the TouchEnter routed event that occurs when a touch moves from outside to inside the bounds of this element.

Provides class handling for the TouchLeave routed event that occurs when a touch moves from inside to outside the bounds of this UIElement. Provides class handling for the TouchMove routed event that occurs when a touch moves while inside this element. Provides class handling for the TouchUp routed event that occurs when a touch is released inside this element. Updates the current position of the Slider when the Value property changes. Called when the VisualCollection of the visual object is modified.

Invoked when the parent of this element in the visual tree is changed. Supports incremental layout implementations in specialized subclasses of FrameworkElement. ParentLayoutInvalidated UIElement is invoked when a child element has invalidated a property that is marked in metadata as affecting the parent's measure or arrange passes during layout. Converts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual.

Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. Determines the next element that would receive focus relative to this element for a provided focus movement direction, but does not actually move the focus. Raises a specific routed event. The RoutedEvent to be raised is identified within the RoutedEventArgs instance that is provided as the RoutedEvent property of that event data. Provides an accessor that simplifies access to the NameScope registration method.

Removes the provided object from this element's logical tree. FrameworkElement updates the affected logical tree parent pointers to keep in sync with this deletion. Attaches a binding to this element, based on the provided source property name as a path qualification to the data source.

Searches for a resource with the specified name and sets up a resource reference to it for the specified property. Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.

Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class. Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property. Returns whether serialization processes should serialize the contents of the Resources property.

Returns whether serialization processes should serialize the contents of the Style property. Returns whether serialization processes should serialize the contents of the Triggers property.

Provides a string representation of a RangeBase object. Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object. Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object.

Returns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. Returns a transform that can be used to transform coordinates from the Visual to the specified visual object.

Translates a point relative to this element to coordinates that are relative to the specified element. Simplifies access to the NameScope de-registration method. Reapplies the default style to the current FrameworkElement. Enforces that the calling thread has access to this DispatcherObject. Occurs when the input system reports an underlying drag event with this element as the drag target.

Occurs when the input system reports an underlying drag event with this element as the drag origin. Occurs when the input system reports an underlying drag event with this element as the potential drop target. Occurs when the input system reports an underlying drop event with this element as the drop target.

Occurs when the value of the Focusable property changes. Occurs when the input system reports an underlying drag-and-drop event that involves this element. Occurs when this FrameworkElement is initialized. This event coincides with cases where the value of the IsInitialized property changes from false or undefined to true.

Occurs when the value of the IsEnabled property on this element changes. Occurs when the value of the IsHitTestVisible dependency property changes on this element. Occurs when the value of the IsKeyboardFocused property changes on this element. Occurs when the value of the IsKeyboardFocusWithin property changes on this element.

Occurs when the value of the IsMouseCaptured property changes on this element. Occurs when the value of the IsMouseDirectlyOver property changes on this element. Occurs when the value of the IsStylusCaptured property changes on this element.

Occurs when the value of the IsStylusCaptureWithin property changes on this element. Occurs when the value of the IsStylusDirectlyOver property changes on this element. Occurs when the value of the IsVisible property changes on this element. Occurs when the layout of the various visual elements associated with the current Dispatcher changes.

Occurs when a manipulation and inertia on the UIElement object is complete. Occurs when the input device loses contact with the UIElement object during a manipulation and inertia begins. Occurs when an input device begins a manipulation on the UIElement object. Occurs when there is a change in the keyboard or mouse button state during a drag-and-drop operation.

Occurs when the stylus moves while over the element. The stylus must move while being detected by the digitizer to raise this event, otherwise, PreviewStylusInAirMove is raised instead. Occurs when the cursor is requested to display. This event is raised on an element each time that the mouse pointer moves to a new location, which means the cursor object might need to be changed based on its new position.

Occurs when BringIntoView Rect is called on this element. Occurs when either the ActualHeight or the ActualWidth properties change value on this element.

Occurs when the stylus moves over this element. The stylus must move while on the digitizer to raise this event. Otherwise, StylusInAirMove is raised instead. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Slider Class Reference Is this page helpful? Please rate your experience Yes No. Any additional feedback? Namespace: System. Controls Assembly: PresentationFramework. LocalizabilityAttribute TemplatePartAttribute.

Note If the value of the Slider is animated, the user may no longer be able to interact with the Slider control after the animation finishes.

Note Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. In this article. Gets the rendered height of this element. Inherited from FrameworkElement. Gets the rendered width of this element. Inherited from UIElement. Gets a value that indicates whether at least one touch is captured to this element. Gets a value that indicates whether at least one touch is pressed over this element.

Gets or sets a brush that describes the background of a control. Inherited from Control. Gets or sets a brush that describes the border background of a control. Gets or sets the border thickness of a control. Gets or sets the cursor that displays when the mouse pointer is over this element. Gets or sets the data context for an element when it participates in data binding. Inherited from DependencyObject.

Gets the size that this element computed during the measure pass of the layout process. Inherited from DispatcherObject. Gets or sets the font family of the control. Gets or sets the font size. Gets or sets the degree to which a font is condensed or expanded on the screen. Gets or sets the font style.

Gets or sets the weight or thickness of the specified font. Gets or sets a brush that describes the foreground color. Gets a value that indicates whether a control supports scrolling. Gets a value indicating whether this element has any animated properties.

Gets or sets the suggested height of the element. Gets or sets the horizontal alignment of the control's content. Gets the collection of input bindings associated with this element. Gets a value indicating whether this element has keyboard focus. Gets a value that indicates whether this element has been loaded for presentation. Gets a value indicating whether the current size returned by layout measure is valid.

Gets a value that indicates whether this instance is currently sealed read-only. Gets or sets a value that indicates whether a control is included in tab navigation. Inherited from RangeBase. Gets an enumerator for logical child elements of this element. Gets or sets the outer margin of an element. Gets or sets the maximum height constraint of the element. Gets or sets the maximum width constraint of the element.

Gets or sets the minimum height constraint of the element. Gets or sets the minimum width constraint of the element. Gets or sets the padding inside a control. Gets the logical parent element of this element. Gets a value that uniquely identifies this element. Gets or sets the final render size of this element.



0コメント

  • 1000 / 1000