Search code examples
c#uwpwin-universal-appuap

Determine whether the user opend the app with double click file or context menu open with


is there a way to determine whether the user opend the uwp app with a double click on the file or whether the user used "open with" (for example right click on the file open with; or Photos app -> open with).

In both scenarios the app will be launched with FileActivetedEventArgs with the verb "open". Any ideas?


Solution

  • In both scenarios the app will be launched with FileActivetedEventArgs with the verb "open". Any ideas?

    Currently, you could not figure out the UWP app opened with file double click or open with scenario, because the final executor is same, and the opening action was managed with system. The file and the executor were isolated by operation system. This is for modularity.

    If you need this new feature, please feel free to ask for this feature on UserVoice.