title: Caliburn.Micro - Binding a button in a sidebar to a method in a ViewModel
body: <p>I have a problem with binding a button located in a sidebar in my windows phone app. It seems like the buttons binding just dissapears..</p>
  
  <p>Here's my code at the moment</p>
  
  <pre><code> &lt;Grid x:Name="LayoutRoot" Background="Transparent"&gt;
  
      &lt;Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"&gt;
  
          &lt;sidebar:SidebarControl x:Name="sidebarControl"
                              HeaderText="WP"
                              HeaderBackground="YellowGreen"
                              HeaderForeground="White"
                              SidebarBackground="{StaticResource PhoneChromeBrush}"&gt;
  
              &lt;sidebar:SidebarControl.SidebarContent&gt;
                  &lt;Grid  HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="380"&gt;
  
  
                      &lt;Button Content="Go to page 2"  x:Name="GoToPage2"/&gt;
  
                      &lt;Grid.RowDefinitions&gt;
                          &lt;RowDefinition Height="Auto"/&gt;
                          &lt;RowDefinition Height="*"/&gt;
                      &lt;/Grid.RowDefinitions&gt;
  
                  &lt;/Grid&gt;
  
  
              &lt;/sidebar:SidebarControl.SidebarContent&gt;
  
              &lt;Grid VerticalAlignment="Top" HorizontalAlignment="Stretch"
                Margin="12"&gt;
                  &lt;TextBlock Style="{StaticResource PhoneTextNormalStyle}"&gt;Your current view goes here&lt;/TextBlock&gt;
              &lt;/Grid&gt;
          &lt;/sidebar:SidebarControl&gt;
  
  
  
      &lt;/Grid&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p>At the moment I am using a nuget for the sidebar called SidebarWP8. Maybe Calinbrun.Micro doesnt work with this? Or do I have to insert a binding to the VM in a grid?</p>
  
  <p>Here's the method in the ViewModel:</p>
  
  <pre><code>private readonly INavigationService navigationService;
  
  public MainPageViewModel(INavigationService navigationService)
  {
    this.navigationService = navigationService;
  }
  
  public void GoToPage2()
  {
     navigationService.UriFor&lt;Page2ViewModel&gt;().Navigate();
  }
  </code></pre>