Windows phone 7 windows phone 7上的web浏览器
我正在使用WindowsPhone7模拟器。我有一个可以导航到本地主机的web浏览器。因此,我面临的问题是,当我将WindowsPhone7模拟器倾斜90%时,屏幕不会倾斜。有什么建议吗Windows phone 7 windows phone 7上的web浏览器,windows-phone-7,Windows Phone 7,我正在使用WindowsPhone7模拟器。我有一个可以导航到本地主机的web浏览器。因此,我面临的问题是,当我将WindowsPhone7模拟器倾斜90%时,屏幕不会倾斜。有什么建议吗 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windo
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)
{
}
}
}
检查您的支持方向是否为xaml中的肖像或风景
还要检查您的模拟器是否由于硬件键盘模拟而被锁定方向。如果您不确定如何修复,请重新启动它。我相信您正在寻找 您希望在.xaml中为适当的页面更改以下内容-很可能是MainPage.xaml: 将突出显示的行更改为
SupportedOrientations="PortraitOrLandscape"
如果没有足够的信息,这里是。正如@Mick N所提到的,在“硬件键盘模式”下,有时会出现显示/方向的问题,无论是按暂停/中断键还是翻页/翻页-如果你想测试方向,我建议至少有一个不在模拟器中使用硬件键盘的runthrough。为了简单起见,我忽略了使用Pause和PGUP/DN的细节,因为它可以非常灵活。如果你决定通过这条路线,如果你有一个文本框(在任何应用程序中)在使用这些键时有焦点,它会很有帮助-当你保持模拟器打开并在应用程序之间切换时,状态会被记住。