Frankly, this gave me a ton of a headache. I thought when using the Grid container’s RowDefinition attribute’s height to auto, it will set the height according to the screen’s height.

As I found out, it does not. What happened was that I placed component after component and the Grid‘s height kept on expanding to the point that its height went beyond that of the screen’s overall height.

Naturally, I attached a ScrollViewer so that I could scroll down to see the other contents but what happened was that once I released my finger upon scrolling down, it snapped back to its original position (top).

I read in forums that setting the ScrollViewer height should do the trick but that even that is not a viable solution since who knows in the future Microsoft may have smart phones with different screen size.

My XAML looks like this. Grid > Grid > ScrollViewer > contents.

Now, the solution is not really to place any static height within the ScrollViewer but to make sure that your root Grid has a height value of its RowDefinition to * and not auto.

See example.

Now you can scroll to the bottom most part of the ScrollViewer.

To create a new XAML or a Page UI for Windows Phone in Visual Studio, there are 2 ways to do this.

Highlight the project name in the Solutions Explorer and do the following:

  • right click project name
  • choose Add > New Item menu item
  • then choose either Silverlight for Windows Phone or XNA Game Studio
  • then choose what kind of Windows Phone Page you plan to use
Or, you can go to the Project menu, then click Add New Item and do the last two steps above.

These should give you a new page to work on plus that accompanying XAML file and its code behind C# file.


Now this comes as a surprise. According to iClarified, ChevronWP7 Labs is an upcoming tool that will jailbreak any Windows Phone 7 device with Microsoft’s approval.

The service though will require a small fee - currently via PayPal - but this is to offset costs.

Unlike Microsoft, Apple has chosen not to embrace jailbreaking even though it has ‘borrowed’ many of its best features from jailbreak developers. In July of last year The Library of Congress ruled that jailbreaking your iPhone in order to install applications not approved by Apple and/or to unlock is legal.

(Photo from iClarified’s site)

Related Posts Plugin for WordPress, Blogger...