示例#1
0
        private App CreateApp()
        {
            var app = new App();

            var ThrowNativeJavaExceptionButton = new Xamarin.Forms.Button {
                Text = "Throw Native Java Exception"
            };

            ThrowNativeJavaExceptionButton.Clicked += ThrowNativeJavaException;

            var FbBtn = new Xamarin.Forms.Button
            {
                Text = "Feedback"
            };

            FbBtn.Clicked += FeedbackClick;

            app.AddChild(ThrowNativeJavaExceptionButton);
            app.AddChild(FbBtn);


            return(app);
        }
示例#2
0
        private App CreateApp()
        {
            var app = new App();

            var ThrowNativeObjCExceptionButton = new Xamarin.Forms.Button {
                Text = "Throw native ObjC Exception"
            };

            ThrowNativeObjCExceptionButton.Clicked += ThrowNativeObjCException;

            app.AddChild(ThrowNativeObjCExceptionButton);

            return(app);
        }