TextBox expanding with surrounding Grid but not with text

前端 未结 3 832
我寻月下人不归
我寻月下人不归 2021-02-20 09:21

A window has a Grid with two columns. The left column contains a control with a constant width but with a height that adapts. The right column contains a TextBox that takes up a

3条回答
  •  一生所求
    2021-02-20 09:56

    You could use an invisible border (its hacky but it works - its how I tend to sort out dynamic textbox sizes):

    
                    
    

提交回复
热议问题