Connor S
Connor S

Reputation: 274

Making Windows 10 recognize your app as a Default app option

Is there any way to make my Windows Universal 10 app (C#) pop up on the Default apps tab in the Windows 10 Settings app? For instance, Microsoft Edge is my default browser but what if i made an app to replace it and i wanted it to be my default browser instead?

Upvotes: 0

Views: 1017

Answers (1)

James Croft
James Croft

Reputation: 1680

You'll need to add file type associations to your application through the declarations tab of the app's manifest.

Add file type associations

To support your file type association, you'll need to handle the Activated method in your App.xaml.cs. You'll be able to detect if your app was activated through the file association from the File ActivationKind in the arguments passed through to that method.

Once you've done that, you'll be able to set your default programs in settings as follows:

Settings File Associations

Upvotes: 1

Related Questions