Tilting web browser on windows phone 7

Posted by marcus on Stack Overflow See other posts from Stack Overflow or by marcus
Published on 2010-12-31T02:38:51Z Indexed on 2010/12/31 2:54 UTC
Read the original article Hit count: 189

Filed under:

Hi guys, i'm working on a windows phone 7 emulator. I have a web browser which navigates to local host. So my problem i faced was that when i tilt the windows phone 7 emulator 90% right, the screen doesn't. Could there be any advice on how to do so?

using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Controls;

namespace DSP { public partial class MainPage : PhoneApplicationPage { // Constructor public MainPage() { InitializeComponent(); }

    private void ContentPanel_Loaded(object sender, RoutedEventArgs e)
    {
        MessageBox.Show("Loading website.  This might take a few seconds...");
        webBrowser1.Navigate(new Uri("http://localhost/Liweiyi_fyp_082648y/homepage.html", UriKind.Absolute));
    }

    private void webBrowser1_Loaded(object sender, RoutedEventArgs e)
    {

    }
}

}

© Stack Overflow or respective owner

Related posts about windows-phone-7