Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HarryPotterApp: CharactersListView.xaml.cs
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
using HarryPotterApp.ViewModels;
namespace HarryPotterApp.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class CharactersListView : ContentPage
{
CharactersListViewModel vm;
public CharactersListView()
{
InitializeComponent();
vm = new CharactersListViewModel(Navigation);
BindingContext = vm;
}
protected override void OnAppearing()
{
base.OnAppearing();
vm.SearchByNameCommand.Execute(string.Empty);
}
}
}
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.