은 OrientationChanged
이벤트는 여전히 페이지의 SupportedOrientations
속성에 PortraitOrLandscape
을 당신이 넣어 확인 윈도우 폰 8에서 작동하도록되어 : 당신은 단순히 Portrait
또는 Landscape
두면
<phone:PhoneApplicationPage
x:Class="WP8Application.Page1"
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"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
OrientationChanged="PhoneApplicationPage_OrientationChanged_1">
점이며, 지원되는 방향에서 이벤트는 으로 트리거되지 않습니다. 휴대 전화를 회전하더라도 응용 프로그램의 방향이 실제로을 변경하지 않기 때문입니다.
다른 질문에 대해서는 yes Windows Phone이 SupportedOrientations
속성을 올바르게 설정할 때 발견 한 것처럼 UI 요소를 자동으로 재 배열해야합니다. 대부분의 경우 요소의 위치를 픽셀 단위로 명시 적으로 설정하지 않는 한 자동 레이아웃이 사용자의 요구에 맞아야합니다.
감사합니다. 완벽하게 작동했습니다. –