title: Best approach for XAML game
body: <p>I am developing a board game with a grid. Every grid has some options for the end user. The idea is that an options menu will be displayed under the grid when the user clicks a grid cell. My XAML looks like:</p>
  
  <p>Mainpage.xaml:</p>
  
  <pre><code>&lt;Grid&gt;
       &lt;Grid.RowDefinitions&gt;
           &lt;RowDefinition Height="450"/&gt;
           &lt;RowDefinition Height="50"/&gt;
       &lt;/Grid.RowDefinitions&gt;
       &lt;game:Board Grid.Row="0"/&gt; 
       &lt;game:Chooser Grid.Row="1" d:IsHidden="False"/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>The Board is a grid which contains a square object in each cell. Each square object does have MouseLeftButtonDown listener. When clicking the square object, the chooser menu must open and some parameters must be passed to this object.</p>
  
  <p>What would be the best approach to do this as the chooser is a member of another class? Do I need to pass the chooser object (which is in MainPage.xaml) to the board and square object? Or is there a way to propagate the event to the chooser?</p>
  
  <p>Cheers
  Tom</p>