Skip to content

You can use the preview slider to feedback the status information at different locations to the user.

cs
[TemplatePart(Name = TrackKey, Type = typeof(Track))]
[TemplatePart(Name = ThumbKey, Type = typeof(FrameworkElement))]
public class PreviewSlider : Slider

Attributes

PropertyDescriptionDefault ValueRemarks
PreviewContentPreview Content
PreviewContentOffsetPreview ContentOffset9

Additional attributes

PropertyDescriptionDefault ValueRemarks
PreviewPositionPreview position0

Events

NameDescription
PreviewPositionChangedTriggered when the preview position changes

Case

xml
<hc:PreviewSlider Name="PreviewSliderHorizontal" Width="300" Value="500" Maximum="1000">
    <hc:PreviewSlider.PreviewContent>
        <Label Style="{StaticResource LabelPrimary}" Content="{Binding Path=(hc:PreviewSlider.PreviewPosition),RelativeSource={RelativeSource Self}}" ContentStringFormat="#0.00"/>
    </hc:PreviewSlider.PreviewContent>
</hc:PreviewSlider>

PreviewSlider

Released under the MIT License.