views:

25

answers:

1

I want to bind a button's width to some textbox's text value, although I want to always have a button width's that's twice what is written on the textbox. This is:

textBox1.Text = 10

will set

button1.Width = 20

Can I only do this through ValueConverters or is there other way to do it?

Thanks

+1  A: 

Bindings that are not simple assignments, that is what value converters are for. (No other way to do it.)

Danny Varod