title: How to properly adapt the app UI on different screens on W10
body: <p>I'm about to start porting my WP8.1 app to W10, and looks like I'll have to make it a Universal Windows App. Now, I'm fine as for the back-end code, as I'll be able to reuse 90% of my classes (Models, ViewModels, and most of my helper classes, extension methods and converters).</p>
  
  <p>The problem is for the UI: I understand I'll have to design the app for different screens and aspect rations, and I don't know how to actually implement that in code.
  I mean, as for the UI scaling, I know I can use the VisualStateManager and AdaptiveTriggers to manually set the properties of the UI elements I want to adapt on any screen resolution, or I can use some converters, and that's fine.</p>
  
  <p>Whan I mean is: what's the best method to have the whole UI adapt to different resolutions?</p>
  
  <p>This is an example:</p>
  
  <p><img src="https://i.stack.imgur.com/2oISY.jpg" alt="People app on Windows 10"></p>
  
  <p>As you can see: the whole navigation pattern changes along the UI when on different screens. On phones, we have the contact page that covers the whole UI, while on tablets and PCs we have the contact page that's just a fraction of the UI, and the pivot pages are moved into another panel on the right. Also, many of the UI elements are completely rearranged.
  And of course, some view-level back-end code will change as well.</p>
  
  <p>Now, I'm wondering what's the best approach to do this whole thing.</p>
  
  <p>Should I:</p>
  
  <p>• Have a single XAML file (for every page) with a lot of VisualStates and stuff, and try to rearrange the UI for every screen resolution</p>
  
  <p>• Have different projects with a shared project (like with W8.1 universal apps), so that I can focus on the UI on every specific device? This is the approach I'd be more comfortable with, as I'd be able to design platform specific UI elements without problems. Still, I didn't understand how to actually create a shared project and different projects for each device type in VS2015.</p>
  
  <p>• Use that approach with different XAML pages that share the same code-behind file (even I'm not sure how to implement this, and how to implement platform-specific code-behind parts).</p>
  
  <p>• Some other method</p>
  
  <p>I mean, I'm sure I'm not the only W8.1/WP8.1 developer in trouble here, is there some kind of advice I can use? I already watched all the MVA videos about W10 development, but they didn't get into the implementation details there.</p>
  
  <p>Thank you for your help</p>
  
  <p>Sergio</p>