Appearance and Styling in WPF Radial Slider (SfRadialSlider)

Inner Rim

Inner Rim term denotes the circle in the center of Radial Slider. Following properties can be used to customize the Inner Rim.

Inner Rim Radius Factor

InnerRimRadiusFactor property decides the radius of Inner Rim from the total radius available to render the Radial Slider.

Inner Rim Stroke

InnerRimStroke property can be used to set the stroke color of the Inner Rim.

Inner Rim Stroke Thickness

InnerRimStrokeThickness property can be used to set the thickness of the Inner Rim.

Inner Rim Fill

InnerRimFill property can be used the set the fill color of the Inner Rim.

  • xaml
  • <syncfusion:SfRadialSlider
    
    InnerRimFill="LightGray"
    
                InnerRimRadiusFactor="0.25"
    
                InnerRimStroke="LightSkyBlue"
    
                InnerRimStrokeThickness="4" />

    Radial slider inner rim fill

    Outer Rim

    Outer Rim term denotes circular track (outer circle) of Radial Slider. Following properties can be used to customize the Inner Rim

    Outer Rim Radius Factor

    OuterRimRadiusFactor property decides the radius of Outer Rim from the total radius available to render the Radial Slider.

    Outer Rim Stroke

    OuterRimStroke property can be used to set the stroke color of the Outer Rim.

    Outer Rim Stroke Thickness

    OuterRimStrokeThickness property can be used to set the thickness of the Outer Rim.

    Background

    Background property can be used to fill the Outer Rim.

  • xaml
  • <syncfusion:SfRadialSlider
    
                Background="LightGray"
    
                OuterRimRadiusFactor="0.8"
    
                OuterRimStroke="LightSkyBlue"
    
                OuterRimStrokeThickness="4" />

    Radial slider outer rim customization

    Ticks

    Ticks displayed along the circular path can be customized using the following properties.

    Tick Template

    Ticks can be customized using the TickTemplate property.

  • xaml
  • <syncfusion:SfRadialSlider>
    
                <syncfusion:SfRadialSlider.TickTemplate>
    
                    <DataTemplate>
    
                        <Border Background="Red"></Border>
    
                    </DataTemplate>
    
                </syncfusion:SfRadialSlider.TickTemplate>
    
     </syncfusion:SfRadialSlider>

    Radial slider tick template

    Tick Radius Factor

    TickRadiusFactor property decides the radius of the ticks from the total radius available to render the Radial Slider.

  • xaml
  • <syncfusion:SfRadialSlider  TickRadiusFactor="0.75"  />

    Radial slider tick factor

    Tick Visibility

    Visibility of ticks can be controlled by TickVisibility property.

  • xaml
  • <syncfusion:SfRadialSlider TickVisibility="Collapsed" />

    Ticks collapsed

    Labels

    Labels displayed along the circular path in the Radial slider can be customized by the following properties.

    Label Template

    The LabelTemplate property can be used to customize the label object.

  • xaml
  • <syncfusion:SfRadialSlider>
    
    <syncfusion:SfRadialSlider.LabelTemplate>
    
               <DataTemplate>
    
                   <TextBlock Text="{Binding}" Foreground="DodgerBlue"></TextBlock>
    
               </DataTemplate>
    
           </syncfusion:SfRadialSlider.LabelTemplate>
    
    </syncfusion:SfRadialSlider>

    Label template

    Label Radius Factor

    LabelRadiusFactor property decides the radius of the labels from the total radius available to render the Radial Slider.

  • xaml
  • <syncfusion:SfRadialSlider LabelRadiusFactor="0.7" />

    Label radius factor

    Label Visibility

    Visibility of ticks can be controlled by LabelVisibility property.

  • xaml
  • <syncfusion:SfRadialSlider  LabelVisibility="Collapsed" />

    Label collapsed

    Pointer

    The Pointer that is used for the select the value by dragging in circular track can be customized with the following properties.

    Pointer Radius Factor

    The PointerRadiusFactor property decides the radius of the Pointer from the total radius available to render the Radial Slider.

  • xaml
  • <syncfusion:SfRadialSlider PointerRadiusFactor="0.5" />

    Pointer radius factor

    Pointer Style

    Style of the Pointer can be customized using the PointerStyle property.

  • xaml
  • <syncfusion:SfRadialSlider>
    
    <syncfusion:SfRadialSlider.PointerStyle>
    
                    <Style TargetType="syncfusion:RadialPointer" >
    
                        <Setter Property="Height" Value="2"/>
    
                        <Setter Property="Template">
    
                            <Setter.Value>
    
                                <ControlTemplate TargetType="syncfusion:RadialPointer">
    
                                    <Border  Background="Red"/>
    
                                </ControlTemplate>
    
                            </Setter.Value>
    
                        </Setter>
    
                    </Style>
    
                </syncfusion:SfRadialSlider.PointerStyle>
    
    </syncfusion:SfRadialSlider>

    Pointer style

    Preview Pointer Style

    The Preview Pointer that appears when hovering over the Radial Slider can be customized using the PreviewPointerStyle property.

  • xaml
  • <syncfusion:SfRadialSlider
    
                Minimum="0" 
    
                Maximum="100"  >
    
                <syncfusion:SfRadialSlider.PreviewPointerStyle>
    
                    <Style TargetType="syncfusion:RadialPreviewPointer" >
    
                        <Setter Property="Height" Value="2"/>
    
                        <Setter Property="Template">
    
                            <Setter.Value>
    
         <ControlTemplate TargetType="syncfusion:RadialPreviewPointer">
    
                                    <Border Opacity="0.2"  Background="Red"/>
    
                              </ControlTemplate>
    
                            </Setter.Value>
    
                        </Setter>
    
                    </Style>
    
                </syncfusion:SfRadialSlider.PreviewPointerStyle>
    
    </syncfusion:SfRadialSlider>

    Preview pointer style