locked
Pass parameter between store apps RRS feed

  • Question

  • I want to launch another store app use

    LaunchUriAsync, But I want to pass some arguments to another store app. How to do?

    Friday, November 29, 2013 8:17 AM

Answers

  • you can add anything behind the protocol; so for example:

    myapp:///myparameterstring

    in the OnLauch in the app.xaml.cs you can use this to read the parameter:

    args.Arguments


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Proposed as answer by Jamles HezModerator Saturday, November 30, 2013 3:20 PM
    • Marked as answer by zhuzhihua Monday, December 2, 2013 6:03 AM
    Friday, November 29, 2013 8:26 AM
  • Thank you! But I receive the parameters in OnActive().

    • Marked as answer by zhuzhihua Monday, December 2, 2013 6:03 AM
    Monday, December 2, 2013 6:03 AM

All replies

  • you can add anything behind the protocol; so for example:

    myapp:///myparameterstring

    in the OnLauch in the app.xaml.cs you can use this to read the parameter:

    args.Arguments


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Proposed as answer by Jamles HezModerator Saturday, November 30, 2013 3:20 PM
    • Marked as answer by zhuzhihua Monday, December 2, 2013 6:03 AM
    Friday, November 29, 2013 8:26 AM
  • Thank you! But I receive the parameters in OnActive().

    • Marked as answer by zhuzhihua Monday, December 2, 2013 6:03 AM
    Monday, December 2, 2013 6:03 AM