다음은 WebBrowser 컨트롤 만 포함하는 매우 간단한 응용 프로그램의 XAML입니다. 전체 크기이며 회전합니다. 앱과 비교하여 다른 점을 찾아 낼 수 있습니까? BTW, 요소에서 변경된 유일한 특성은 @SupportedOrientations의 가치입니다.
<phone:PhoneApplicationPage
x:Class="WP7WebBrowser.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True">
<Grid x:Name="LayoutRoot" Background="Transparent">
<phone:WebBrowser Source="http://www.bing.com"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" />
</Grid>
</phone:PhoneApplicationPage>
희망은 올바른 길을!
감사합니다. 내가 생각하는 VerticalAlignment를 설정하는 것을 잊어 버렸습니다. 행 또는 그와 비슷한 것 또는 그와 비슷한 것. – JacobTheDev
Windows Phone 8에서는 작동하지 않습니다. WebBrowser는 VerticalAlignment = "Stretch"인 경우에도 높이가 0입니다. – JustAMartin