Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to make sure that my main window's vertical dimension never surpases the screen's height?

$
0
0

My main window contains a DataGrid, and I am implementing my own

   myWindow.SizeToContent = WidthAndHeight;
feature BEFORE the data is fed into my underlying data structure. The value of the vertical dimension, however, sometimes is too high. I would like it to be bound by the screen's dimension.

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>