public SettingsPage(BeatboxModel model)
        {
            _model = model;

            InitializeComponent();
            BindingContext = new SettingsViewModel(model);
        }
Example #2
0
        public BeatboxPage(BeatboxModel model)
        {
            _model = model;

            InitializeComponent();
            BindingContext = new BeatboxViewModel(model);
        }
Example #3
0
        public App()
        {
            InitializeComponent();
            FlowListView.Init();

            var model       = new BeatboxModel(20, new AudioProvider());
            var beatBoxPage = new BeatboxPage(model);

            MainPage = new NavigationPage(beatBoxPage);
        }
 public BeatboxViewModel(BeatboxModel model)
 {
     _model = model;
     Sounds.AddRange(model.Sounds);
 }