Guest User

Untitled

a guest
Dec 16th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using Xamarin.Forms;
  2. using Xamarin.Forms.Xaml;
  3.  
  4. using VideoGameMusicApp.ViewModels;
  5.  
  6. namespace VideoGameMusicApp.Views
  7. {
  8. [XamlCompilation(XamlCompilationOptions.Compile)]
  9. public partial class PaginaListaCanciones : ContentPage
  10. {
  11. CancionesViewModel vm;
  12.  
  13. public PaginaListaCanciones()
  14. {
  15. InitializeComponent();
  16.  
  17. vm = new CancionesViewModel();
  18. BindingContext = vm;
  19. }
  20.  
  21. protected async override void OnAppearing()
  22. {
  23. base.OnAppearing();
  24. await vm.ObtenerCanciones();
  25. }
  26. }
  27. }
Add Comment
Please, Sign In to add comment