Problems with binding to Window Height and Width

后端 未结 9 807
长发绾君心
长发绾君心 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:27

    Height="{DynamicResource {x:Static SystemParameters.PrimaryScreenHeightKey}}" Width="{DynamicResource {x:Static SystemParameters.PrimaryScreenWidthKey}}"
    

    Works fine on my end.

提交回复
热议问题