Esempio n. 1
0
        public override void LoadView()
        {
            base.LoadView();

            profile = new AircraftProfileView(View.Bounds.Width);
            Root.Add(new Section(profile));

            var section = new Section("Type of Aircraft");

            section.Add(category          = new StringElement("Category"));
            section.Add(classification    = new StringElement("Classification"));
            section.Add(isComplex         = new StringElement("Complex"));
            section.Add(isHighPerformance = new StringElement("High Performance"));
            section.Add(isTailDragger     = new StringElement("Tail Dragger"));
            section.Add(isSimulator       = new StringElement("Simulator"));
            Root.Add(section);

            edit = new UIBarButtonItem(UIBarButtonSystemItem.Edit, OnEditClicked);
            NavigationItem.RightBarButtonItem = edit;
        }
        public override void LoadView()
        {
            base.LoadView ();

            profile = new AircraftProfileView (View.Bounds.Width);
            Root.Add (new Section (profile));

            var section = new Section ("Type of Aircraft");
            section.Add (category = new StringElement ("Category"));
            section.Add (classification = new StringElement ("Classification"));
            section.Add (isComplex = new StringElement ("Complex"));
            section.Add (isHighPerformance = new StringElement ("High Performance"));
            section.Add (isTailDragger = new StringElement ("Tail Dragger"));
            section.Add (isSimulator = new StringElement ("Simulator"));
            Root.Add (section);

            edit = new UIBarButtonItem (UIBarButtonSystemItem.Edit, OnEditClicked);
            NavigationItem.RightBarButtonItem = edit;
        }