Problems with binding to Window Height and Width

后端 未结 9 761
长发绾君心
长发绾君心 2020-12-05 13:46

I have some problems when I try to bind the height and width of a window to properties in my view model. Here is a small sample app to illustrate the problem. This is the co

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 14:18

    Binding to MinWidth and MinHeight is correct. Also, if you need bind to MaxWidth and MaxHeight if your dynamic will both enlarge or reduce the size of Window.

提交回复
热议问题