Hello,
Welcome to Microsoft Q&A!
How do I access the file shared by Explorer in the WPF app?
Well, you could not directly use the WPF app as the share target app. You need to create a UWP app as the share target app and then packaged the UWP app with your WPF app together in the Windows Application Packaging Project. When there is a file to be shared, the UWP app will be the share target, it receives the data and pass the data to your WPF app. Then you could do your logic in your WPF app.
For more information please check this blog: Extend your desktop application with Windows 10 features using the new Visual Studio Application Packaging Project.
Thank you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.