protected override void OnNavigatedTo(NavigationEventArgs e) { broker = (ProjectionViewBroker)e.Parameter; broker.ProjectedPage = this; // Listen for when it's time to close this view broker.ProjectionViewPageControl.Released += thisViewControl_Released; }
protected override void OnNavigatedTo(NavigationEventArgs e) { broker = (ProjectionViewBroker)e.Parameter; broker.ProjectedPage = this; // Listen for when it's time to close this view broker.ProjectionViewPageControl.Released += thisViewControl_Released; }
private async void Pvb_ProjectionStopping(object sender, EventArgs e) { ProjectionViewBroker broker = sender as ProjectionViewBroker; TimeSpan position = broker.ProjectedPage.Player.Position; Uri source = broker.ProjectedPage.Player.Source; await rootPage.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => { rootPage.NotifyUser("Resuming playback on the first screen", NotifyType.StatusMessage); this.player.Source = source; this.player.Position = position; this.player.Play(); rootPage.ProjectionViewPageControl = null; }); }
private bool TryStopProjectionManagerAsync(ProjectionViewBroker broker) { broker.ProjectedPage.StopProjecting(); return(true); }
private bool TryStopProjectionManagerAsync(ProjectionViewBroker broker) { broker.ProjectedPage.StopProjecting(); return true; }