How to make textbox resize as the window resize

前端 未结 4 1047
小鲜肉
小鲜肉 2020-12-06 05:15

Any property to set to make textbox to resize according to the window size?

4条回答
  •  情深已故
    2020-12-06 05:44

    One method would be to bind the height and width of the TextBox to the height and width of the Window, for example:

    There may be a different property that might want to bind to, or you might want to use an expression so the TextBox isn't exactly the Height/Width of the parent window. A lot depends on your specific usage scenario, but this should be enough to get you started.

提交回复
热议问题