윈도우폰 세상/Windows Phone
Windows mobile 화면 회전
소년포비
2009. 10. 11. 02:21
C# 에서 화면을 회전 시키는 -_-;;
먼저 using Microsoft.WindowsCE.Forms.dll 참조추가 하고
코드는 단 한줄...;;
private static void screenRotation()
{
if (SystemSettings.ScreenOrientation == ScreenOrientation.Angle0)
SystemSettings.ScreenOrientation = ScreenOrientation.Angle90;
else
SystemSettings.ScreenOrientation = ScreenOrientation.Angle0;
}