title: How to set ContentPage orientation in Xamarin.Forms
body: <p>I'm using Xamarin.Forms to create a cross platform application, all of my <code>ContentPages</code> are situated within the <code>PCL</code>.</p>
  
  <p>I'm looking for a way to set and lock the <code>orientation</code> of a single <code>ContentPage</code> to <code>Landscape</code>, preferably without having to create another activity in each of the platform specific projects.</p>
  
  <p>Since my <code>ContentPage.Content</code> is set to a <code>ScrollView</code>, I've tried setting the <code>ScrollOrientation</code> to <code>Horizontal</code>, however this did not work.</p>
  
  <p>I've also tried using a <code>RelativeLayout</code>, but I can't see an <code>Orientation</code> property on this.</p>
  
  <pre><code>public class PlanningBoardView : ContentPage //Container Class.
      {
          public PlanningBoardView()
          {
              scroller = new ScrollView ();
  
              Board = new PlanningBoard();
  
              scroller.Orientation = ScrollOrientation.Horizontal;
              scroller.WidthRequest = Board.BoardWidth;
              scroller.Content = Board;
  
              Content = scroller;
          }
      }
  </code></pre>
  
  <p>The last thing I tried was using Xamarin Studio's version of Intellisense and the <a href="http://developer.xamarin.com/api/namespace/Xamarin.Forms/" rel="noreferrer">Xamarin Forms API Doc's</a> to look through the different Layouts available to me, none of which had a <code>Orientation</code> property.</p>
  
  <p>I fear the only way to do this is by creating a second platform specific <code>Activity</code> just for this one <code>ContentPage</code> and setting the orientation to landscape. </p>
  
  <p>Although this method would work, it makes the Navigation between screens a lot more complex. </p>
  
  <p>This is currently being tested in Android.</p>