Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Last active December 16, 2018 13:52
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 icebeam7/3d614eac2f8a95642c07d9f45dc20f96 to your computer and use it in GitHub Desktop.
Save icebeam7/3d614eac2f8a95642c07d9f45dc20f96 to your computer and use it in GitHub Desktop.
VideoGameMusicApp: PaginaListaCanciones.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using VideoGameMusicApp.ViewModels;
namespace VideoGameMusicApp.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PaginaListaCanciones : ContentPage
{
CancionesViewModel vm;
public PaginaListaCanciones()
{
InitializeComponent();
vm = new CancionesViewModel();
BindingContext = vm;
}
protected async override void OnAppearing()
{
base.OnAppearing();
await vm.ObtenerCanciones();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment