就是把现有文件转移到隔离空间即可

代码如下

 private async void CopyDB()
        {
            StorageFile fage = await ApplicationData.Current.LocalFolder.GetFileAsync("Logos.png");
            if (!File.Exists(fage.Path)) {
                StorageFile storageFile = await Package.Current.InstalledLocation.GetFileAsync(@"Assets\Logos.png");
                var path = Windows.Storage.ApplicationData.Current.LocalFolder;
                await storageFile.CopyAsync(path);
            }           
        }

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2021-10-17
猜你喜欢
  • 2021-05-03
  • 2022-02-09
  • 2021-12-15
  • 2021-12-09
  • 2021-10-13
  • 2021-10-22
  • 2021-07-14
相关资源
相似解决方案