public ListPage( ListViewModel _vm ) { InitializeComponent(); vm = _vm; BindingContext = vm; }
public App() { UsageModel model = UsageModel.GetInstance(); ListViewModel vm = new ListViewModel( model ); MainPage = new TabbedPage { Children = { new AddPage(), new ListPage( vm ) } }; }