开发者

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 hand开发者_如何学Pythonle something like this?


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


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!


In my case the Height of the rowdefinition where I have the datagrid was set to "Auto" and it had a rowdefinition below with height set to *. I switched the values and it worked.


Yes stack panels causes some unknown errors in Silverlight, I Had also experienced problems with regards to stack panels like nesting data fields inside stack panels which are also inside data forms.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜