title: mvvmcross with autoview menu viewmodel + view with android layout
body: <p>I would like to define my options menu from my viewmodel using autoviews. I have implemented IMvxAutoDialogViewModel in my viewmodel and defined the menu. I also have a view defined a corresponding android layout for that view. It is my understanding that views and layouts take priority over what is defined in my viewmodel in the case of autoviews. Is it possible to create kind of a hybrid where I define only the menu section from my viewmodel and have that injected into my view that is defined with a android layout?</p>
  
  <p>I get no options menu when I do the following:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class MainViewModel
      : MvxViewModel, IMvxAutoDialogViewModel
  {
      public KeyedDescription GetAutoView(string type)
      {
          switch (type)
          {
              case MvxAutoViewConstants.Menu:
                  return GetMenuAutoView();
              default:
                  return null;
          }
      }
  
      public bool SupportsAutoView(string type)
      {
          switch (type)
          {
              case MvxAutoViewConstants.Menu:
                  return true;
              default:
                  return false;
          }
      }
  
      private KeyedDescription GetMenuAutoView()
      {
          var auto = new ParentMenuAuto()
          {
              new MenuAuto(caption: "System",
                  longCaption: "System",
                  command: ()=&gt; ShowSystemViewModelCommand)
          };
  
          return auto.ToParentMenuDescription();
      }
  }
  </code></pre>
  
  <pre class="lang-cs prettyprint-override"><code>[Activity(Label = "Main")]
  public class MainView : MvxActivity
  {
      protected override void OnCreate(Bundle bundle)
      {
          base.OnCreate(bundle);
          SetContentView(Resource.Layout.MainView);
      }
  }
  </code></pre>