i searched the last hours for a customcontrol that looks like this: http://i1-scripts.softpedia-static.com/screenshots/Volume-Slider-10188.png
It's like a simple slider, but this growing size to the right side is my problem.
I don't know how to do this.
Have anyone an idea?
greetings
You can define a geometry that has the shape of a triangle and use that as a
OpacityMask
of theTrack
. TheTrack
has a repeat button on the left to decrease the value and on the right to increase it. You just need to bind the background of the left button to the background of your slider along with the background of the thumb. You also should make the templates of both the thumb and the repeaters very simple to only show the background color.Here is an example style:
(This is just an example which disregards a lot of things like e.g. the
Orientation
)