title: Send data between WPF Windows
body: <p>So I have been looking around and haven't found a solution for this, using WPF <code>Window</code>s. </p>
  
  <p>So what I want to do is to send values from two sliders from one WPF <code>Window</code> to another. How should this be done using two WPF <code>Window</code>s inside the same project? And is it possible to do it from another project inside the same solution using references? </p>
  
  <p>I have been working with Windows forms and can get it to work easily there, but it just won't work with WPF <code>Window</code>s.</p>
  
  <p>[Edited] What needs to be done is very basic really. We have a menu Project called <code>Startup</code> with a <code>MainWindow.xaml</code> that does not yet contain any code that needs to be mentioned. Although, we want from the menu, to be able to use 2 sliders, 1 to set the amount of players that are going to participate and another to set the amount of hours that the game should last. We have fixed this problem already from the game itself by setting the amount of players like this:</p>
  
  <pre><code>private void slider1_ValueChanged(object sender, RoutedPropertyChangedEventArgs&lt;double&gt; e)  // Change move-army-strenght
  {
      movearmy = Convert.ToInt32(slider1.Value);
      lblresult3.Content = "" + movearmy;
      if (menuphase == 1) { players = Convert.ToInt32(slider1.Value); }
  }
  </code></pre>
  
  <p>This will check if it's <code>menuphase</code> one and then get the amount of players from that. Although, we want to send this value from the <code>Menu</code>, not while inside the game!</p>