Skip to content

Instantly share code, notes, and snippets.

@ionixjunior
Created December 4, 2016 15:27
Show Gist options
  • Save ionixjunior/7b17f2537a4234956d06d57ae6942f83 to your computer and use it in GitHub Desktop.
Save ionixjunior/7b17f2537a4234956d06d57ae6942f83 to your computer and use it in GitHub Desktop.
<?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