wpf Window Width not binding -


I would like to control the height and width of one of my windows through my ViewModel.

It seems simple enough.

  & lt; Window ... width = "{binding path = width}" height = "{binding path = altitude}" />  

But no it does not work.

This checks the width of ViewModel, but height is not.

Strange enough, if I switch the sequence of width and height in xam it's height and width does not check. That is, it first examines only two properties and completely ignores the other.

MaxHeight and MinHeight work even after complying width . But then the user can not resize the window

Do not know what your view modal code looks like, but to create a set for width and height properties Try and set binding mode to binary


Comments