locked
[UWP][XAML] XAML View vs XAMLPage for different device families RRS feed

  • Question

  • Dear all,

    I have thinking on my curent UWP application structure and the best way for me would be to identify the device on which the app is running and then use the proper UI for the page depending on the device family.

    For that I have see a description of using XAMLView and XAML Page.

    https://msdn.microsoft.com/en-us/windows/uwp/layout/layouts-with-xaml

    Then what ever the one is use we create each unique View or unique Page for device Dektop or Mobile device family.

    Then if we need to make more difference in mobile device familly, we can check the resolution and havin extra difference UI depending on the target if needed

    What are the main difference bewteen XAML page or using XAML View to get this unique layout ?

    regards


    Saturday, March 12, 2016 6:03 PM

Answers

All replies

  • IMO you should only use a view if you really *need* to separate the two. I've only seen one good use of it so far, typically using adaptive layout is enough.

    http://pauliom.wordpress.com


    • Edited by pkr2000 Saturday, March 12, 2016 11:30 PM
    Saturday, March 12, 2016 11:29 PM
  • Hi,

    Please following this article: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b479e984-ca39-4b34-a6b7-85194b54d8bd/guide-to-posting-subject-line-tags?forum=wpdevelop to add tags when you create a new thread. It will help us to clarify your issue.

    XAML page contains XAML and code behind, however XAML view only have XAML file. We usually choose them according with the actual situation. If you want to show the different UI according with the device family, we can refer to the method describe in the article you provided.

    Best Regards,

    Jambor


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Monday, March 14, 2016 5:13 AM