【发布时间】:2022-12-14 03:04:26
【问题描述】:
string location = Path.Combine(FileSystem.Current.AppDataDirectory, "Download", "abc.jpg");
image.Source = ImageSource.FromFile(location);
【问题讨论】:
-
您想要系统下载文件夹,还是应用程序的下载文件夹?
-
系统下载文件夹
标签: maui
string location = Path.Combine(FileSystem.Current.AppDataDirectory, "Download", "abc.jpg");
image.Source = ImageSource.FromFile(location);
【问题讨论】:
标签: maui
location的下载路径等同于:
视窗:
C:UsersUserAppDataLocalPackages{GUID}_{hash}LocalStateDownload
安卓:
/data/user/0/your_appliactionID/files/Download
iOSmacOS:
返回由 iTunes 和 iCloud 备份的 Library 目录。
【讨论】: