Question

I'm building a navigation based application in WPF. I have a main window which contains some tabs. Each tab contains a frame in which the associated page shall be shown.

I want my page (and its controls) to be resized when I change the size of the main window. I tried settings margins and not setting width and height, but that didn't work.

Était-ce utile?

La solution

I see my mistake now. To have a resizable page, you should just set d:DesignHeight and d:DesignWidth, not Height and Width themselves.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top