I need some help. Don't know if this is possible. I want to have the following:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox TextWrapping="Wrap" MinLines ="5"/>
</Grid>
which is a textbox wrapping inside of a grid column with width *. I want the textbox to take all the width available(hence *) but when a user adds text I want it to wrap when it gets to the end of the line(with the space available).
Currently the above will give a textbox with the entire width but when text is entered the width of the textbox just grows with the text.
I know i can set MaxWidth=?, but the point the column is * is that I don't know what the size of the column is.
I would like to say to the textbox "don't grow, whatever wpf gives you take it and don't increase one more pixel above that".
I think what I want is impossible, because wpf asks the control how big it wants to be and when the user adds more text that goes beyond the boundary it kindly requests more space and goes off expanding its width to infinity.