Hi @Neo , Welcome to Microsoft Q&A!
IDesktopWallpaper Interface only supports desktop apps. If you are using the UWP project, you cannot use it in the UWP project.
If you want to set lock screen image or wallpaper image in UWP project, it is recommended to use UserProfilePersonalizationSettings.TrySetLockScreenImageAsync and UserProfilePersonalizationSettings.TrySetWallpaperImageAsync.
Thank you.
Junjie.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.