title: UWP Custom Constructor when creating a secondary window
body: <p>I'm developing a quick application with the sole purpose of using picture-in-picture mode (compact view) in UWP to display Youtube videos over top of my work. Here's the way the current system works:</p>
  
  <p>MainPage - Handles searching of youtube videos
  YoutubeItem - A usercontrol that the mainpage creates for each youtube result. Approximately 50 of these are put into a wrap panel.
  YoutubeViewer - A seperate page that runs in it's own window and displays the youtube video.</p>
  
  <p>Here's my issue. I store all the information for the youtube video in each of the YoutubeItems. Using a button, I record the click event and handle it. Here's the code for handling the click:</p>
  
  <pre><code>private async void Button_Click(object sender, RoutedEventArgs e)
      {
          CoreApplicationView newView = CoreApplication.CreateNewView();
          int newViewId = 0;
          await newView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =&gt;
          {
              Frame frame = new Frame();
              frame.Navigate(typeof(YoutubeViewer), null);
              Window.Current.Content = frame;
              // You have to activate the window in order to show it later.
              Window.Current.Activate();
  
              newViewId = ApplicationView.GetForCurrentView().Id;
  
          });
          bool viewShown = await ApplicationViewSwitcher.TryShowAsStandaloneAsync(newViewId);
      }
  </code></pre>
  
  <p>The problem arises when I have to send the link for the video to the YoutubeViewer. Originally, I was doing this through a constructor but upon using this method for the Windows Documentation, I am unable to use my own constructor from my knowledge. How would you folks recommend getting the link to the new window?</p>