Docking a web browser on all four sides

I have a web browser control inside a WPF window. The web browser must resize by resizing the main window. In a sense, all four sides must be tied to MainWindow in order to be able to dynamically resize. But unlike Windows Forms, there is no binding for controls. Any suggestions?

+4
source share
1 answer

You set Horizontal and VerticalAlignment to Stretch .

A mock system and alignment of MSDN links may also be of interest.

Also note that some containers have properties for their contents ( Horizontal / VerticalContentAlignment ), which may also be important.

+4
source

Source: https://habr.com/ru/post/1392174/


All Articles