title: How include the root view in the shell
body: <p>I see this example 
  <a href="https://openui5.hana.ondemand.com/explored.html#/entity/sap.ui.unified.Shell/samples" rel="nofollow">https://openui5.hana.ondemand.com/explored.html#/entity/sap.ui.unified.Shell/samples</a></p>
  
  <p>Now I have a root view (this.app) and all works fine.</p>
  
  <pre><code>return this.app;
  </code></pre>
  
  <p>Now I want include the root app in a shell container..
  I try to do this:</p>
  
  <pre><code>var oShell= new sap.m.Shell("idShell", {
              title: "Test App",
              logo:"https://dl.dropboxusercontent.com/u/7546923/OpenUI5/SAPUI5.png",
              headerRightText: "This is a sap.m.Shell",
              logout: function() {alert("Logout button was pressed");}
          });
  
  oShell.setApp(this.app);
  
  return oShell;
  </code></pre>
  
  <p>But in this way I can't see the bar on the top. (I see only the app limited in width and the logo out of the app, on left)</p>
  
  <p>I try to do this:</p>
  
  <pre><code>var oShell= new sap.m.Shell("idShell", {
              title: "Test App",
              logo:"https://dl.dropboxusercontent.com/u/7546923/OpenUI5/SAPUI5.png",
              headerRightText: "This is a sap.m.Shell",
              logout: function() {alert("Logout button was pressed");}
          });
  
  oShell.setApp(sap.ui.xmlview("view.shell"));  //the view of the example in the documentation
  
  return oShell;
  </code></pre>
  
  <h2>In this way I can see the bar but I can't associate the root app in the content of shell</h2>
  
  <p>Now I use sap.ui.unified.Shell</p>
  
  <pre><code>jQuery.sap.require("sap.ui.unified.Shell");
  jQuery.sap.require("sap.ui.unified.ShellHeadItem");
  this.shell = new sap.ui.unified.Shell('');
  
  var logout=new sap.ui.unified.ShellHeadItem({
      tooltip: "Logout",
      icon: "sap-icon://menu2"
  });
  
  this.shell.addHeadItem(logout);
  
  
  this.shell.addContent(this.app);
  </code></pre>
  
  <p>How can I use a MVC pattern to manage the shell bar content? I want use an XML-view. And how can I avoid to write </p>
  
  <pre><code>jQuery.sap.require("sap.ui.unified.Shell");
  jQuery.sap.require("sap.ui.unified.ShellHeadItem");
  </code></pre>
  
  <p>?</p>