How to start a program from the file explorer right-click menu

This is a pdf reader for which I have introduced multi-instance functionality.


But I don't know how should I make the pdf file load through this program from the right-click menu



In fact I have absolutely no idea what to write here. What should I do so that this program can read files directly from the right-click menu?

Is there an example……?



var instance = AppInstance.FindOrRegisterInstanceForKey(_sf.Name);



file 
https://drive.google.com/file/d/1ooSxGkJq0vxBAW7JDC5Fi80tqeb13MXj/view?usp=sharing


4 Replies 1 reply marked as answer

VD Vikram Devaraj Syncfusion Team June 17, 2022 10:46 AM UTC

Hi,

Greetings from Syncfusion support, 



Please provide access for the file to check your issue further on our side.

Graphical user interface

Description automatically generated
Regards,
Vikram




SH Shompinice June 20, 2022 02:20 AM UTC

Any update?



VD Vikram Devaraj Syncfusion Team June 20, 2022 10:55 AM UTC

Hi,

Thanks for your patience,

On our validation we could be able to see that, in the “
PageLoaded” method you are loading a default document and which is invoked after the “OnNavigatedTo” method. So, whenever you try to open a particular document using right click, it doesn’t load the current document instead it opens the default document in the program. To fix this issue you need to restrict the default document loading. Please find the snips below which help you to fix this issue.

1. Get the Storage file,
Graphical user interface, text, application, email

Description automatically generated



2.Restrict the default loading of document if the storage file is null equal to null,

Graphical user interface, text, application, email

Description automatically generated


Regards,
Vikram


Marked as answer
Loader.
Up arrow icon