Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight DataGrid vertical scrollbar issue

I have a DataGrid in my silverlight application and I'm wondering how to get the same behavior for the vertical scrolling as the horizontal scrolling. When I resize the browser horizontally, The app will bunch up all the controls and the horizontal scrollbar will appear, however when I resize it vertially, the controls at the bottom of the app just move out of view. Does anyone know any tricks to handle something like this?

like image 208
PhilBrown Avatar asked Jun 14 '10 17:06

PhilBrown


2 Answers

My problem is StackPanels. Don't use them, they are evil and don't resize.

like image 154
PhilBrown Avatar answered Oct 03 '22 04:10

PhilBrown


I couldn't get the scrollbar to show up at all with the datagrid. Removing the datagrid from a stackpanel and using a grid instead also solved my problem.

Good call!

like image 41
Nicros Avatar answered Oct 03 '22 04:10

Nicros