title: DevExpress - How to detect the device we are running on
body: <p>I have downloaded the Devextreme package installed it and created a project in VS using their template.</p>
  
  <p>I have created a simple 'hello world' dxview using iPad dimensions and one using iPhone dimensions.</p>
  
  <p>Now I wish to load the correct view during first load, something like this:</p>
  
  <pre><code>if (runningOnTablet)  &lt;-- THIS IS THE QUESTION!
     DevExtremeIPad.app.router.register(":view/:id", { view: "pgIPad", id: undefined });
  else
     DevExtremeIPad.app.router.register(":view/:id", { view: "pgIPhone", id: undefined });
  </code></pre>
  
  <p>How do I go about writing views that look good on an iPad vs iPhone using the same code base (viewmodels etc)</p>
  
  <p>I have created other sample views that look good on iPhone and therefore also on Android but if the user uses a tablet I wish to present different views!</p>
  
  <p>Thanks</p>