public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { global::Xamarin.Forms.Forms.Init(); RedbridgeForms.Init(); RedbridgeThemeManager.SetTheme(RedbridgeTheme.Black); var bootstrapper = new Bootstrapper(); LoadApplication(bootstrapper.Create()); return(base.FinishedLaunching(uiApplication, launchOptions)); }
protected override ITableCellViewModel CreateItemViewModel(RedbridgeTheme item) { return(new TextCellViewModel(item.Name, CellIndicators.Disclosure) { Command = new Command(async() => { IsBusy = true; await Task.Delay(1000); IsBusy = false; RedbridgeThemeManager.SetTheme(item); var viewModel = _viewModelFactory.CreateModel <ThemeViewModel>(); await Navigation.PushAsync(viewModel); }) }); }