title: Pass data between WPF windows
body: <p>I have some code that works in winforms, but not in WPF apparently, the code is as follows:
  This is set globally:</p>
  
  <pre><code>Private Property avar As Object
  Public main As MainWindow
  Public charchoice As Char
  </code></pre>
  
  <p>And then in the Window Loaded sub, this is placed:</p>
  
  <pre><code>charchoice = main.charchoice
  </code></pre>
  
  <p>Thing is, the next window doesn't pick up this variable, so how can I make it recognise and use it? Thanks Guys</p>
  
  <p>Nick</p>