Automatically constraining ListView Height  
Author Message
No-spam Sam





PostPosted: Windows Presentation Foundation (WPF), Automatically constraining ListView Height Top

How can I automatically constrain the ListView Height without explicititly setting its Height property

Basically, I want my ListView to be part of a Grid with RowHeight set to a '*' value (and obviously the VerticalAlignment set to Stretch). But if I do that, then the ListView takes up as much Height as it has elements- and shows no Vertical Scroll Bar.

I've also tried putting the ListView in a DockPanel as the Last Child, and with the LastChildFill property set to true. The same thing happens then - the ListView height is unconstrained.

I'm using WinFX Beta 2

What is happening here

Thanks,

Sam



Visual Studio 200841  
 
 
Sam





PostPosted: Windows Presentation Foundation (WPF), Automatically constraining ListView Height Top

Does nobody have any ideas on this Not even the Avalon ATC team

I can't even find a workaround.


 
 
Sam





PostPosted: Windows Presentation Foundation (WPF), Automatically constraining ListView Height Top

I found the answer, and have noted it in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=547545&SiteID=1&mode=1