In This Article

RadialSlider Class

Represents a radial slider.

[TemplatePart(Name = "PART_Thumb", Type = typeof(CircularThumb))]
public class RadialSlider : RangeBase
Inheritance:
object Visual UIElement FrameworkElement Control RangeBase object
Derived:
EmbeddedRadialSlider

Constructors

RadialSlider()

Initializes an instance of the class.

public RadialSlider()

Properties

IntermediateValue

The value of the slider while the user is interacting with it, before the value is snapped.

public double IntermediateValue { get; set; }

Property Value

double

Radius

The slider's radius.

public double Radius { get; set; }

Property Value

double:

The default value is 100.0.

ThumbArrowAngle

The thumb's arrow angle.

public double ThumbArrowAngle { get; set; }

Property Value

double:

The default value is 180.0, meaning it will face down when up at 0 degrees in the slider.

ThumbBackground

The background Brush to render when the thumb is in a normal state.

public Brush? ThumbBackground { get; set; }

Property Value

Brush

ThumbPressedBackground

The background Brush to render when the thumb is pressed.

public Brush? ThumbPressedBackground { get; set; }

Property Value

Brush

ThumbStyle

The Style to use for the thumb.

public Style? ThumbStyle { get; set; }

Property Value

Style

Remarks

Use this property if a custom thumb Style is desired.

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.

OnValueChanged(double, double)

Raises the ValueChanged routed event.

protected override void OnValueChanged(double oldValue, double newValue)
Parameter Type Description
oldValue double

Old value of the Value property.

newValue double

New value of the Value property.

SetValueCore(double)

Sets the Value property and applies snapping.

protected void SetValueCore(double value)
Parameter Type Description
value double

The value to set.

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

IntermediateValueProperty

Defines the IntermediateValue property.

public static readonly DependencyProperty IntermediateValueProperty

RadiusProperty

Defines the Radius property.

public static readonly DependencyProperty RadiusProperty

ThumbArrowAngleProperty

Defines the ThumbArrowAngle property.

public static readonly DependencyProperty ThumbArrowAngleProperty

ThumbBackgroundProperty

Defines the ThumbBackground property.

public static readonly DependencyProperty ThumbBackgroundProperty

ThumbPressedBackgroundProperty

Defines the ThumbPressedBackground property.

public static readonly DependencyProperty ThumbPressedBackgroundProperty

ThumbStyleProperty

Defines the ThumbStyle property.

public static readonly DependencyProperty ThumbStyleProperty

Extension Methods