This seems like it should be easy but I\'m stumped. In WPF, I\'d like a TextBox that stretches to the width of it\'s parent, but only to a maximum width. The problem is that
You can set HorizontalAlignment to Left, set your MaxWidth and then bind Width to the ActualWidth of the parent element:
HorizontalAlignment
MaxWidth
Width
ActualWidth