示例#1
0
 //
 // This method is invoked when the application has loaded and is ready to run. In this 
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching (UIApplication app, NSDictionary options)
 {
     window = new UIWindow (UIScreen.MainScreen.Bounds);
     
     viewController = new HelloWorldViewController ();
     window.RootViewController = viewController;
     window.MakeKeyAndVisible ();
     
     return true;
 }
示例#2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            window.SetStyleMode(PXStylingMode.PXStylingNormal);

            viewController            = new HelloWorldViewController();
            window.RootViewController = viewController;

            // Show how to add two new CSS classes to the main view
            viewController.View.AddStyleClass("gray");
            viewController.View.AddStyleClass("bordered");

            window.MakeKeyAndVisible();

            return(true);
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            PixateFreestyle.CurrentApplicationStylesheet().MonitorChanges = true;
            Console.WriteLine("CSS FILE: " + PixateFreestyle.CurrentApplicationStylesheet().FilePath);

            // Make the main window styleable
            window.SetStyleMode(PXStylingMode.PXStylingNormal);

            viewController            = new HelloWorldViewController();
            window.RootViewController = viewController;

            // Show how to add two new CSS classes to the main view
            viewController.View.AddStyleClass("gray");
            viewController.View.AddStyleClass("bordered");

            window.MakeKeyAndVisible();

            return(true);
        }
示例#4
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            Pixate.CurrentApplicationStylesheet ().MonitorChanges = true;
            Console.WriteLine ("CSS FILE: " + Pixate.CurrentApplicationStylesheet ().FilePath);

            // Make the main window styleable
            window.SetStyleMode (PXStylingMode.PXStylingNormal);

            viewController = new HelloWorldViewController ();
            window.RootViewController = viewController;

            // Show how to add two new CSS classes to the main view
            viewController.View.AddStyleClass ("gray");
            viewController.View.AddStyleClass ("bordered");

            window.MakeKeyAndVisible ();

            return true;
        }