Represents a control that can be dragged by the user.
<TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Pressed", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ Public NotInheritable Class Thumb _ Inherits Control
[TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Pressed", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] public sealed class Thumb : Control
<Thumb .../>
The Thumb type exposes the following members.
The Thumb control is usually included in another control, such as a ScrollBar or Slider control, to let the user change the control's value. The Thumb can also be used to resize controls. For example, a Thumb control in the corner of a window can provide a location for the user to click with the mouse to start a resize operation.
Thumb provides DragStarted, DragCompleted and DragDelta events to manage drag operations associated with the mouse pointer. The Thumb control receives logical focus and mouse capture when the user presses the left mouse button while the mouse pointer is paused over the Thumb. When the Thumb control receives logical focus and mouse capture, the DragStarted event is raised. While the Thumb control has logical focus and mouse capture, the DragDelta event can be raised repeatedly. When the user releases the left mouse button, the Thumb control loses mouse capture and the DragCompleted event is raised.
Note The events DragStarted, DragCompleted and DragDelta are particular to the Thumb class and support its UI logic. Because Thumb is a UIElement, it also inherits several events that support a different conception of drag-and-drop (DragEnter, DragLeave, DragOver, Drop). These events support an entirely different Silverlight 5 scenario where a UIElement can be a drop target for a data object that represents a file list. This scenario is not typically relevant for a Thumb, and therefore you should not write handlers for DragEnter, DragLeave, DragOver, Drop.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.