/// <summary> /// Dismisses the player because the playback ended. /// </summary> private void DismissPlayer() { InvokeOnMainThread(() => { PlayerViewController.DismissViewController(true, null); }); }
public override void ViewDidLoad() { base.ViewDidLoad(); var view = NativeView; playerController = new PlayerViewController(); playerController.WillMoveToParentViewController(this); this.AddChildViewController(playerController); this.View.InsertSubview(playerController.View, 0); //this.View.AddSubview(playerController.View); playerController.DidMoveToParentViewController(this); }
public void PresentWelcomeScreen() { if (detailViewController == null) { var searchBarViewController = new SearchBarViewController(appModel.Search); var playerViewController = new PlayerViewController(appModel.Player); detailViewController = new DetailViewController(appModel, searchBarViewController, playerViewController); breadcrumbView = detailViewController.View.BreadcrumbView; breadcrumbView.NavigationRequested += NavigateTo; } PushView("welcomeScreen", "Welcome Screen", new WelcomeView()); }
public DetailViewController(ApplicationViewModel appModel, SearchBarViewController searchBarViewController, PlayerViewController playerViewController) { View = new DetailView(searchBarViewController.View, playerViewController.View); }
protected override void OnElementChanged(VisualElementChangedEventArgs e) { playerController = new PlayerViewController(); base.OnElementChanged(e); }