Skip to content

Question: How to override OnFileActivated? #785

Answered by andrewleader
akpapa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for asking!

The OnFileActivated method overload is only supported by UWP project types (which is only supported in the preview versions of Project Reunion). The docs do mention that for desktop apps, this method isn't called.

For desktop MSIX apps (what you created), today you can use AppInstance.GetActivatedEventArgs(): https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/get-activation-info-for-packaged-apps#code-example

We're additionally working on adding new AppLifecycle APIs for handling file activation (among other activations), you can see the spec here: #111

AppLifecycle is planned to ship in 1.0, but we'll have some previews out in the 0.8 timeframe.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akpapa
Comment options

Answer selected by akpapa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants