public Input(DisposableI parent, XAMLApplication application) : base(parent) { this.applicationI = application; this.pageApplication = application; application.HandleEvent += updateEvent; }
public MainPage() { InitializeComponent(); application = (XAMLApplication)OS.CurrentApplication; if (application.Orientation == ApplicationOrientations.Landscape) { SupportedOrientations = SupportedPageOrientation.Landscape; Orientation = PageOrientation.Landscape; } else { SupportedOrientations = SupportedPageOrientation.Portrait; Orientation = PageOrientation.Portrait; } }