Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by Mohammad Zare for Remove additional vertical whitespace from WPF

If i understand your question correctly, you can use Height="Auto" for your listbox (or other controls) and if you want to keep your window's height updated according to the listbox, you can bind your windows height to the listbox with the below code:

Height="{Binding ActualHeight, ElementName=personListBoxTest}"

i hope it can be useful for you.


Viewing all articles
Browse latest Browse all 7

Trending Articles



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