简体   繁体   中英

How can I open and lauch .pdf files in desktop using my App

i use the following code.

<Extensions>
   <Extension Category="windows.fileTypeAssociation">
       <FileTypeAssociation Name="pdf">
           <SupportedFileTypes>
              <FileType>.pdf</FileType>
            </SupportedFileTypes>
        </FileTypeAssociation>
    </Extension>
</Extensions>

How can i get options as open with my app like open with pdf reader. Then how can I bring it inside myapp using launcher,

protected override void OnFileActivated(FileActivatedEventArgs args) { var f = args.Files[0]; var c = args.Files[0].Name; string path = args.Files[0].Path; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM