Sometimes you need to change the size of the HTML element hosting a Silverlight 2.0 control. Simply changing the width and height of your System.Windows.Controls.Use... will not actually change the amount of space that the browser reserves for it. You may still be left with an ugly white border or scroll bars. Here is a simle method that can be called from within your Silverlight 2.0 control to change the space that the browser alots for your it: ///<summary> /// Change the height of the...
If you don't already have Fiddler, get it. The problem: Web traffic to and from your local ASP.NET development server is not captured by Fiddler 2. The solution: Replace "localhost" in the request with "somesite.com". Somesite just loops back to 127.0.0.1 (localhost), but Fiddler will now capture the request. For example: Change http://localhost:4028/devsi... to http://somesite.com:4028/de...