Hello,
I have userControl and textbox in it.
I want to make userControl resize itself depends on textbox actual height.
my textbox height is changing when I start new line.
but userControl size can only grow.
I used this binding in userControl:
I tried to bind userControl height to textBox.actualHeight and I have set height to auto etc.
and every other possible option.
now when I load my userControl its height is twice bigger than textBox and userControl resize itself only on textBox growth.
:indecisiveness:
How to do it right? what causing this problem?
I want to use bindings.
Thanks.
I have userControl and textbox in it.
I want to make userControl resize itself depends on textbox actual height.
my textbox height is changing when I start new line.
but userControl size can only grow.
I used this binding in userControl:
C#:
Height="{Binding ActualHeight, ElementName=txtTask, Mode=OneWay}
I tried to bind userControl height to textBox.actualHeight and I have set height to auto etc.
and every other possible option.
now when I load my userControl its height is twice bigger than textBox and userControl resize itself only on textBox growth.
:indecisiveness:
How to do it right? what causing this problem?
I want to use bindings.
Thanks.
Last edited: