locked
[C++]How to pass data between xaml pages using c++ RRS feed

  • Question

  • Can You Help me by telling how we can pass/transfer/use data between different xaml pages using c++ ?
    Thursday, May 5, 2016 8:32 PM

Answers

  • Use a shared view model or pass properties in the navigate method or a combination of the two.

    http://pauliom.com

    • Proposed as answer by Krunal Parekh Friday, May 6, 2016 3:19 AM
    • Marked as answer by Krunal Parekh Thursday, May 19, 2016 9:41 AM
    Thursday, May 5, 2016 10:22 PM
  • Hi Mohammad Moaz,

    Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools We have no idea what kind of project you are using for developing Universal App? Is it windows 8.1 or Win10 UWP app? 

    >>Can You Help me by telling how we can pass/transfer/use data between different xaml pages using c++ ?

    There are few ways which one to use depends on your needs. 

    1. as @pkr described you can use shared model. 

    2. Use the Frame.Navigate(TypeName, Object) method to pass object between pages in peer to peer navigation. 

    Please see: Pass information between pages

    3. Use ApplicationData.LocalSettings if its something like flags or a small data that you need to share thoughout app. 

    With Regards,

    Krunal Parekh



    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Friday, May 6, 2016 3:18 AM

All replies

  • Use a shared view model or pass properties in the navigate method or a combination of the two.

    http://pauliom.com

    • Proposed as answer by Krunal Parekh Friday, May 6, 2016 3:19 AM
    • Marked as answer by Krunal Parekh Thursday, May 19, 2016 9:41 AM
    Thursday, May 5, 2016 10:22 PM
  • Hi Mohammad Moaz,

    Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools We have no idea what kind of project you are using for developing Universal App? Is it windows 8.1 or Win10 UWP app? 

    >>Can You Help me by telling how we can pass/transfer/use data between different xaml pages using c++ ?

    There are few ways which one to use depends on your needs. 

    1. as @pkr described you can use shared model. 

    2. Use the Frame.Navigate(TypeName, Object) method to pass object between pages in peer to peer navigation. 

    Please see: Pass information between pages

    3. Use ApplicationData.LocalSettings if its something like flags or a small data that you need to share thoughout app. 

    With Regards,

    Krunal Parekh



    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Friday, May 6, 2016 3:18 AM