title: Close context menu for Databound items in WP7
body: <p>I have listbox in my WP7 that uses the below <code>DataTemplete</code> to display the list items</p>
  
  <pre><code>        &lt;DataTemplate x:Key="MetaDataTemplate"&gt;
              &lt;Grid Width="440" Margin="4,12,0,12"&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="64"/&gt;
                      &lt;ColumnDefinition/&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
                  &lt;toolkit:ContextMenuService.ContextMenu&gt;
                      &lt;toolkit:ContextMenu&gt;
                          &lt;toolkit:MenuItem Header="download" Visibility="{Binding DownloadVisible}" Command="{Binding Download}"/&gt;
                          &lt;toolkit:MenuItem Header="get link" Command="{Binding GetLink}"/&gt;
                          &lt;toolkit:MenuItem Header="delete" Command="{Binding Delete}"/&gt;
                      &lt;/toolkit:ContextMenu&gt;
                  &lt;/toolkit:ContextMenuService.ContextMenu&gt;                    
                  &lt;Image Height="64" Width="64" Source="{Binding Thumb}" Stretch="UniformToFill"  /&gt;
                  &lt;TextBlock Text="{Binding MetaData.Name, Mode=OneWay}" VerticalAlignment="Center" Margin="12,0,0,0" 
                             Style="{StaticResource MetaDataHeaderStyle}" Grid.Column="1" /&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>defining the context menu data template makes it quite impossible to close the menu on pressing the back button! Does anyone faced this problem? How did you solve it?</p>
  
  <p>I searched for the solution on internet, but couldn't find one. Any help is appreciated.</p>