0
Windows 8.1 및 Visual Studio 2013 RC가 설치되었습니다.Windows 8.1 저장소 응용 프로그램에서 vb.net을 사용하여 OrientationChanged 이벤트를 처리하는 방법
은 내가 그럼 난 도구 상자에서에서 MainPage.xaml에 텍스트 상자를 배치 4.5.1
.NET 프레임 워크를 대상으로 새 Windows 스토어 프로젝트를 만들었습니다. 속성에서
은 내가 this article을 읽은
"TextBox1에"로 명칭을 변경하고, 나는 수업을 수입 :
:Windows.Graphics.Display
Windows.Graphics.Display.DisplayInformation
다음 나는 MainPage 클래스 내부의 declation 배치
Private Event OrientationChanged As TypedEventHandler(Of DisplayInformation, Object)
및 개인 메소드의 선언 :
Private Sub ChangeText() Handles Me.OrientationChanged
TextBox1.Text = "Hello World"
End Sub
시뮬레이터 탭을 확인하고 프로젝트를 실행했습니다.
그런 다음 Simulator를 사용하여 "시계 방향으로 회전"버튼 을 누르지 만 TextBox1의 텍스트는 변경되지 않습니다.
위의 코드에 어떤 문제가 있습니까? 사건 처리의 요점이 누락되었거나 다른 것이 잘못 되었습니까?
미리 감사드립니다.