Skip to content

Instantly share code, notes, and snippets.

@LucioMSP
Created July 22, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucioMSP/f6e312ced7d49eec7e23bfa054377ff2 to your computer and use it in GitHub Desktop.
Save LucioMSP/f6e312ced7d49eec7e23bfa054377ff2 to your computer and use it in GitHub Desktop.
MainPage.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using CurrencyUISample.ViewModels;
namespace CurrencyUISample
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MainPage : ContentPage
{
MainPageVM vm = null;
public MainPage()
{
InitializeComponent();
vm = new MainPageVM(this.Navigation);
this.BindingContext = vm;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment