WPA datagrid automatically performs automation

My WPF application has a resolution of 1024x768. I have datagridone that fills the vertical half of the application. At higher resolutions, when I maximize, I want it to datagridautomatically resize vertically and fill the entire height. How can i do this?

+3
source share
2 answers

you can try adjusting the vertical alignment of the control to stretch ( VeritcalAlignment="Stretch") so that even when the window is resized, it still fills the vertical part of the screen.

Let me know if this works for you or if you have something else in mind. :)

+2
source

, , , 1024 X 768, , , DataGrid . . , 1024 x 768, DataGrid *, .

-2

All Articles