public SettingsPage(BeatboxModel model) { _model = model; InitializeComponent(); BindingContext = new SettingsViewModel(model); }
public BeatboxPage(BeatboxModel model) { _model = model; InitializeComponent(); BindingContext = new BeatboxViewModel(model); }
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); }