I have a web browser control inside the WPF window.
The web browser should resize with the resizing of the main window. In a sense, all the four sides should be anchored with the MainWindow to be able to dynamically resize.
But unlike Windows Forms, there is not anchor property for the controls.
Any suggestions?
I have a web browser control inside the WPF window. The web browser should
Share
You would set the
HorizontalandVerticalAlignmenttoStretch.The layout system and alignment references on MSDN might be of interest as well.
Also note that some containers have a properties for the aligment of their contents (
Horizontal/VerticalContentAlignment) which can be important as well.