Quantcast
Channel: Remove additional vertical whitespace from WPF - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Rachel for Remove additional vertical whitespace from WPF

$
0
0

Wrap your ListBox in a Grid and set it's VerticalAlignment="Top"

It sounds like your ListBox control is inside another element such as a Grid or DockPanel, which by default stretches it's children to fill all available space.

<Grid><ListBox VerticalAlignment="Top" ... /></Grid>

Viewing all articles
Browse latest Browse all 7

Trending Articles



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