Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Core.Views.Page1View"
Title="Page 1"
>
<ContentPage.Content>
<StackLayout>
<Button
Text="Goto page 2"
Command="{Binding GotoPage2Command}"
></Button>
</StackLayout>
</ContentPage.Content>
</ContentPage>
using Core.ViewModels;
using Xamarin.Forms;
namespace Core.Views
{
public partial class Page1View : ContentPage
{
public Page1View()
{
InitializeComponent();
BindingContext = new Page1ViewModel();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment