Esempio n. 1
0
        public CartridgeList(AppDelegate app) : base()
        {
            this.appDelegate = app;

            // OS specific details
            if (new Version(UIDevice.CurrentDevice.SystemVersion) >= new Version(7, 0))
            {
                // Code that uses features from Xamarin.iOS 7.0
                this.EdgesForExtendedLayout = UIRectEdge.None;
            }

            // Create source for table view
            cartListSource          = new CartridgeListSource();
            cartListSource.OnSelect = OnSelect;

            // Create table view
            Table = new UITableView()
            {
                Source            = cartListSource,
                AutoresizingMask  = UIViewAutoresizing.All,
                AutosizesSubviews = true
            };
        }
Esempio n. 2
0
		public CartridgeList (AppDelegate app) : base()
		{
			this.appDelegate = app;

			// OS specific details
			if (new Version (UIDevice.CurrentDevice.SystemVersion) >= new Version(7,0)) 
			{
				// Code that uses features from Xamarin.iOS 7.0
				this.EdgesForExtendedLayout = UIRectEdge.None;
			}

			// Create source for table view
			cartListSource = new CartridgeListSource();
			cartListSource.OnSelect = OnSelect;

			// Create table view
			Table = new UITableView()
			{
				Source = cartListSource,
				AutoresizingMask = UIViewAutoresizing.All,
				AutosizesSubviews = true
			};
		}