public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			this.Title = "Working with Touch";

			this.btnTouch.TouchUpInside += (s, e) => {
				if (touchScreen == null)
					touchScreen = new Example_Touch.Screens.iPhone.SimpleTouch.Touches_iPhone ();
				this.NavigationController.PushViewController (touchScreen, true);
			};

			this.btnGestureRecognizers.TouchUpInside += (s, e) => {
				if (gestureScreen == null)
					gestureScreen = new Example_Touch.Screens.iPhone.GestureRecognizers.GestureRecognizers_iPhone();
				this.NavigationController.PushViewController (gestureScreen, true);
			};

			this.btnCustomGestureRecognizer.TouchUpInside += (s, e) => {
				if (customGestureScreen == null)
					customGestureScreen = new Example_Touch.Screens.iPhone.GestureRecognizers.CustomCheckmarkGestureRecognizer_iPhone();
				this.NavigationController.PushViewController (customGestureScreen, true);
			};

		}
示例#2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            this.Title = "Working with Touch";

            this.btnTouch.TouchUpInside += (s, e) => {
                if (touchScreen == null)
                {
                    touchScreen = new Example_Touch.Screens.iPhone.SimpleTouch.Touches_iPhone();
                }
                this.NavigationController.PushViewController(touchScreen, true);
            };

            this.btnGestureRecognizers.TouchUpInside += (s, e) => {
                if (gestureScreen == null)
                {
                    gestureScreen = new Example_Touch.Screens.iPhone.GestureRecognizers.GestureRecognizers_iPhone();
                }
                this.NavigationController.PushViewController(gestureScreen, true);
            };

            this.btnCustomGestureRecognizer.TouchUpInside += (s, e) => {
                if (customGestureScreen == null)
                {
                    customGestureScreen = new Example_Touch.Screens.iPhone.GestureRecognizers.CustomCheckmarkGestureRecognizer_iPhone();
                }
                this.NavigationController.PushViewController(customGestureScreen, true);
            };
        }