Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add attached property to allow slider tool tip formatting #2692

Merged

Conversation

cjmurph
Copy link
Contributor

@cjmurph cjmurph commented May 13, 2022

This feature can work around issue #2685 and it's also useful to have.

The attached property allows a string format to be spcified as per below:

    <Slider  
        wpf:SliderAssist.ToolTipFormat="a value of {0} is selected"
        Maximum="100"
        Minimum="0"
        Style="{StaticResource MaterialDesignDiscreteSlider}"
        TickFrequency="10"
        TickPlacement="BottomRight"
        Value="{Binding Value}"/>

Which look ssomething like this
image

With nothing specified or an invalid format, the value is shown raw and unformatted.

@Keboo Keboo added this to the 4.6.0 milestone May 16, 2022
@Keboo Keboo merged commit 4c0415c into MaterialDesignInXAML:master May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants