How to resize a silverlight control to a full webpage.

Posted by ForeverDebugging on Stack Overflow See other posts from Stack Overflow or by ForeverDebugging
Published on 2010-03-29T09:02:35Z Indexed on 2010/03/29 9:03 UTC
Read the original article Hit count: 246

Filed under:

I'm currently using a datagrid within a user control. The datagrid resizes based on the number of rows, and therefore goes off the webpage.

I've tried wrapping the control around a ScrollViewer, but in order to have the scroll bar visible and working, I need to set the MaxHeight of the datagrid.

The problem is that I don't know what the MaxHeight of the datagrid should be because it differs based on the size of the browser window appearing on the screen.

Any suggestions on how to determine the correct size of the control?

© Stack Overflow or respective owner

Related posts about Silverlight