title: Navigate to view model from left pane of mvxSlidingpanels
body: <p>I am trying to use this beautiful sliding panel by the Awesome Big Frank (<a href="https://github.com/fcaico/MvxSlidingPanels.Touch" rel="nofollow">https://github.com/fcaico/MvxSlidingPanels.Touch</a>).</p>
  
  <p>So i have implemented a left panel. When I click on an element, I want it to close the panel, and open a new view in the center pane. </p>
  
  <p>Here is my code</p>
  
  <pre><code>public partial class LeftPanelView : MvxDialogViewController
  {
      public override void ViewDidLoad ()
      {
          base.ViewDidLoad();
  
          this.Root = new RootElement("Menu")
              {
                  new Section("TEST")
                      {
                          new StyledStringElement("Produits enregistrés", ((LeftPanelViewModel)this.ViewModel).GoToSecondViewModel),
                      }
              };
      }
  }
  </code></pre>
  
  <p>And in the LeftPaneViewModel I have this:</p>
  
  <pre><code>public class LeftPanelViewModel : BaseViewModel
  {
      public LeftPanelViewModel ()
      {
      }
  
      public void GoToSecondViewModel()
      {
          this.ShowViewModel&lt;SecondViewModel&gt;();
      }
  }
  </code></pre>
  
  <p>As expected, it doesn't work.</p>
  
  <pre><code>2014-03-12 20:59:33.608 MvxSlidingPanelsSampleTouch[386:80b] TouchNavigation: Diagnostic:  10.14 Navigate requested
  2014-03-12 20:59:33.783 MvxSlidingPanelsSampleTouch[386:80b] mvx: Diagnostic:  10.31 Showing ViewModel SecondViewModel
  2014-03-12 20:59:33.783 MvxSlidingPanelsSampleTouch[386:80b] TouchNavigation: Diagnostic:  10.32 Navigate requested
  2014-03-12 20:59:33.785 MvxSlidingPanelsSampleTouch[386:80b] nested push animation can result in corrupted navigation bar
  2014-03-12 20:59:34.134 MvxSlidingPanelsSampleTouch[386:80b] Unbalanced calls to begin/end appearance transitions for &lt;SecondView: 0xe3f8590&gt;.
  2014-03-12 20:59:34.248 MvxSlidingPanelsSampleTouch[386:80b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.
  </code></pre>
  
  <p>I understand that doing this cannot magically behave like I'd want.
  But what I would like to understand, is how to modify the MvxSlidingPanelsTouchViewPresenter to make this work ?</p>