how to get the public documents libraries on metro application

الإجابة how to get the public documents libraries on metro application

  • 13 Maret 2012 10:43
     
     
          By using the method "KnownFolders::DocumentsLibrary" I can access [my documents] path like "C:\Users\win8_user\Documents" and write the certain file in it.

         But now I want to access the [public documents] path like "C:\Users\Public\Documents" then write a .xml file in it in order to provide a path for the other metro applications to access the file (which was not on a user level but open to the public).


Semua Balasan

  • 13 Maret 2012 21:12
    Moderator
     
     Jawab

    There is no separate Public Documents Library. There is just a Documents Library which contains a merged view of the user's private documents and the public documents.

    If you look at the properties on the Documents library in Explorer you will see a list of the folders contained in the library.

    The same applies to Music, Videos, and Pictures.

    --Rob

  • 14 Maret 2012 5:07
     
     Jawab

    Unless the user has changed the default save location for the documents library to the public folder this is not possible.

    Generally the system does not want metro style apps to create private communication mechanisms with eachother. Instead the system provided contracts (shared, launch, file picking, contact picking) should be used.

    Chris