WPF TextBox and Scroll behavior

The problem is that the parent elements are providing TextBox with as much space as it thinks it needs, and when more text is present it will expand instead of staying at the initial automatic size. One solution here is to make another auto-sized element and bind the TextBox.Width to it: <DockPanel> <TreeView Width=”150″ DockPanel.Dock=”Left”/> … Read more