Binding a slider value on the height of its thumb in WPF
Posted
by sofri
on Stack Overflow
See other posts from Stack Overflow
or by sofri
Published on 2010-04-22T08:57:42Z
Indexed on
2010/04/22
10:43 UTC
Read the original article
Hit count: 457
Hi, I have a databinding problem in WPF.
I would like to "customise" a slider in a way that the thumb grows when you move the slider to the right and the thumb shrinks when you move the slider to the left.
So I edited the template for the slider and changed the look of the slider so the slider looks like I want it to.
But now I have to bind the height of the thumb to the value of the slider but I do not know how that works.
I did some simple data binding things but I cannot figure out how I can bind this "thumb height" that's inside of my slider's template to the slider's value that's inside the User Control where my slider is in.
So how can I do it?
© Stack Overflow or respective owner