Create an Xamarin Form based application using Visual Studio

Create an Xamarin Form based application (using Visual Studio) which will display the following in two different platforms

. HINTS: If you are using a Windows machine you will not be able to create a Mac platform. However, you can create a Windows Application Platform, Window Phone Platform, and/or Android Platform. If you are using a Mac Machine you cannot create a Windows Phone application.

You can use the example code from this chapter and make adjustments to complete the code. Display: Your Name Course Name Course Number Date What to provide : A. The code files that you changed from the original examples for this chapter. B. Two screen shots showing the application working. One screen shot for each platform. It must be running in at least one phone emulator

code;

using System; using System.Collections.Generic; using System.Linq; using System.Text;
using Xamarin.Forms;
namespace Hello {     public class App : Application     {         public App()         {             // The root page of your application             MainPage = new ContentPage             {                 Content = new StackLayout                 {                     VerticalOptions = LayoutOptions.Center,                     Children = {                         new Label {                             HorizontalTextAlignment = TextAlignment.Center,                             Text = \"Welcome to Xamarin Forms!\"                         }                     }                 }             };         }
        protected override void OnStart()         {             // Handle when your app starts         }
        protected override void OnSleep()         {             // Handle when your app sleeps         }
        protected override void OnResume()         {             // Handle when your app resumes         }     } }

Solution

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Xamarin.Forms;

namespace Hello

{

     public class App : Application

   {

         public App()   

      {            

// The root page of your application    

         MainPage = new ContentPage    

         {                 Content = new StackLayout    

             {                     VerticalOptions = LayoutOptions.Center,         

            Children = {        

                 new Label

{                    

HorizontalTextAlignment = TextAlignment.Center,

                            Text = \"Welcome to Xamarin Forms!\"        

                 }         

            }      

           }      

       };    

     }

        protected override void OnStart()

{     

        // Handle when your app starts  

       }

        protected override void OnSleep()   

      {          

   // Handle when your app sleeps      

   }
        protected override void OnResume()    

     {

        // Handle when your app resumes

         }

     }

}

Create an Xamarin Form based application (using Visual Studio) which will display the following in two different platforms . HINTS: If you are using a Windows m
Create an Xamarin Form based application (using Visual Studio) which will display the following in two different platforms . HINTS: If you are using a Windows m

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site