Public partial class NotesPage : ContentPage
#Xamarin visual studio 2013 tutorial code#
In, remove all of the template code and replace it with the following code: using System In Solution Explorer, in the Notes project, double-click to open it: Save the changes to NotesPage.xaml by pressing CTRL+S. For more information about creating the user interface, see User interface in the Xamarin.Forms Shell Quickstart Deep Dive. The two Button objects are horizontally laid out in a Grid, with the Editor and Grid being vertically laid out in a StackLayout. This code declaratively defines the user interface for the page, which consists of an Editor for text input, and two Button objects that direct the application to save or delete a file. In NotesPage.xaml, remove all of the template code and replace it with the following code: In Solution Explorer, in the Notes project, double-click NotesPage.xaml to open it:
This page will be the main page in the application. This will add a new page named NotesPage to the Views folder. In the Add New Item dialog, select Visual C# Items > Xamarin.Forms > Content Page, name the new file NotesPage, and click the Add button: In Solution Explorer, in the Notes project, select the Views folder, right-click, and select Add > New Item. In Solution Explorer, in the Notes project, add a new folder named Views. In Solution Explorer, in the Notes project, delete GettingStarted.txt. In Solution Explorer, in the Notes project, delete the following folders (and their contents): NET Standard library that gets created, see Anatomy of a Xamarin.Forms Shell application in the Xamarin.Forms Shell Quickstart Deep Dive. When the project has been created, close the GettingStarted.txt file.įor more information about the. In the New Mobile App dialog, select the Tabbed template, and click the Create button: Using a different name will result in build errors when you copy code from this quickstart into the project. The C# and XAML snippets in this quickstart requires that the solution and project are both named Notes.