CircularThumb Class
Represents a circular thumb used to change values in a various input control.
[TemplatePart(Name = "PART_Arrow", Type = typeof(UIElement))]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "PointerOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Pressed", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "PointerFocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
public class CircularThumb : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
CircularThumb()
Initializes an instance of the class.
public CircularThumb()
Properties
ArrowAngle
The arrow angle.
IsDragging
Indicates whether the thumb is being dragged by a pointer.
public bool IsDragging { get; }
Property Value
- bool:
trueif the thumb is being dragged by a pointer; otherwise,false.
PressedBackground
The background Brush to render when the thumb is pressed.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
The type-specific AutomationPeer implementation.
OnGotFocus(RoutedEventArgs)
Invoked whenever an unhandled GotFocus event reaches this element in its route.
protected override void OnGotFocus(RoutedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | RoutedEventArgs | The RoutedEventArgs that contains the event data. |
OnLostFocus(RoutedEventArgs)
Raises the LostFocus routed event by using the event data that is provided.
protected override void OnLostFocus(RoutedEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | RoutedEventArgs | A RoutedEventArgs that contains event data. This event data must contain the identifier for the LostFocus event. |
StartDrag(InputPointerButtonEventArgs)
Starts a thumb drag.
public void StartDrag(InputPointerButtonEventArgs sourceEventArgs)
| Parameter | Type | Description |
|---|---|---|
| sourceEventArgs | InputPointerButtonEventArgs | The source InputPointerButtonEventArgs, which can be used to capture the pointer. |
Fields
ArrowAngleProperty
Defines the ArrowAngle property.
public static readonly DependencyProperty ArrowAngleProperty
IsDraggingProperty
Defines the IsDragging property.
public static readonly DependencyProperty IsDraggingProperty
PressedBackgroundProperty
Defines the PressedBackground property.
public static readonly DependencyProperty PressedBackgroundProperty