I am kinda new to WPF. I am programatically inserting text into textbox. This textbox is added to stackpanel programatically.
The problem is the textbox is not resizing. I have set textbox textwrapping to wrap.
textbox.TextWrapping=TextWrapping.Wrap;
Please guide me, how to set the text box resize after assigning text to it.
textbox.Text="some long paragraph text";