Inheritance: System.Windows.Application, ApplicationI
Example #1
0
 public Input(DisposableI parent, XAMLApplication application)
     : base(parent)
 {
     this.applicationI = application;
     this.pageApplication = application;
     application.HandleEvent += updateEvent;
 }
Example #2
0
        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;
            }
        }
Example #3
0
        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;
            }
        }