height and width of silverlight webpart

Nov 30, 2008 at 6:21 AM
Hi

We have developed a custom silverlight webpart in sharepoint. Right now we have given the height and width of the SL webpart in the webpart DLL (say height =900, with =700). Is tere a way to change this height and width dynamically based on the users resolution?
The actual sharepoint webpart's height and width seems to change based on the users desktop resolution and accordingly the size of the webpart also changes.

Likewise how do i make the silverlight webpart to change height and width based on the users resoution? Do we need to hard code the height and width in the dll? is that the only way of specifying the size of the webpart?

Please let me know your thougts on this.

Thanks
Chinkul.