Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.