예제 #1
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			// Perform any additional setup after loading the view, typically from a nib.
			iconLocation = Images.IconLocation;
			iconYouSee = Images.IconYouSee;
			iconInventory = Images.IconInventory;
			iconTask = Images.IconTask;
			iconPosition = Images.IconPosition;

			// Show back button
			NavigationItem.SetHidesBackButton (false, false);

			// Create source for table view
			MainScreenSource mainListSource = new MainScreenSource(this, ctrl);

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

			// Set the table view to fit the width of the app.
			Table.SizeToFit();
			// Reposition and resize the receiver
			Table.Frame = new RectangleF (0, 0, this.View.Frame.Width,this.View.Frame.Height);
			// Add the table view as a subview
			this.View.AddSubviews(this.Table);
		}
예제 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
            iconLocation  = Images.IconLocation;
            iconYouSee    = Images.IconYouSee;
            iconInventory = Images.IconInventory;
            iconTask      = Images.IconTask;
            iconPosition  = Images.IconPosition;

            // Show back button
            NavigationItem.SetHidesBackButton(false, false);

            // Create source for table view
            MainScreenSource mainListSource = new MainScreenSource(this, ctrl);

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

            // Set the table view to fit the width of the app.
            Table.SizeToFit();
            // Reposition and resize the receiver
            Table.Frame = new RectangleF(0, 0, this.View.Frame.Width, this.View.Frame.Height);
            // Add the table view as a subview
            this.View.AddSubviews(this.Table);
        }