public ListPage( ListViewModel _vm )
        {
            InitializeComponent();

            vm = _vm;
            BindingContext = vm;
        }
Beispiel #2
0
        public App()
        {
            UsageModel model = UsageModel.GetInstance();
            ListViewModel vm = new ListViewModel( model );

            MainPage = new TabbedPage {
                Children = {
                    new AddPage(),
                    new ListPage( vm )
                }
            };
        }