示例#1
0
 protected override void OnCreate()
 {
     base.OnCreate();
     XApplication.ClearCurrent();
     Device.Info.CurrentOrientation = GetDeviceOrientation();
     Window.RotationChanged        += (sender, e) => Device.Info.CurrentOrientation = GetDeviceOrientation();
     Window.BackButtonPressed      += (sender, e) => _application?.MainPage?.SendBackButtonPressed();
 }
 public override void OnCreate(Bundle content, int w, int h)
 {
     base.OnCreate(content, w, h);
     XApplication.ClearCurrent();
 }