Inheritance: System.Attribute
Ejemplo n.º 1
0
        public MXTouchNavigation(UIApplicationDelegate appDelegate)
        {
            _instance = this;

            var options = Attribute.GetCustomAttribute(appDelegate.GetType(), typeof(MXTouchContainerOptions)) as MXTouchContainerOptions;
            _options = options ?? new MXTouchContainerOptions();

            var tabletOptions = Attribute.GetCustomAttribute(appDelegate.GetType(), typeof(MXTouchTabletOptions)) as MXTouchTabletOptions;
            _tabletOptions = tabletOptions ?? new MXTouchTabletOptions(TabletLayout.SinglePane);
        }
Ejemplo n.º 2
0
 private void StartApplication()
 {
     if (_window.Subviews.Length == 0)
     {
         // toss in a temporary view until async initialization is complete
         string bitmapFile = string.Empty;
         MXTouchContainerOptions options = Attribute.GetCustomAttribute(_appDelegate.GetType(), typeof(MXTouchContainerOptions)) as MXTouchContainerOptions;
         if (options != null)
         {
             bitmapFile = options.SplashBitmap;
         }
         _splashViewController = new SplashViewController(bitmapFile);
         _window.AddSubview(_splashViewController.View);
         _window.MakeKeyAndVisible();
     }
 }