public virtual async void SetAsDesktopBackgroundItem(RoutedEventArgs e) { if (SlimContentPage.SelectedItems.Count > 1) { var images = (from o in SlimContentPage.SelectedItems select o.ItemPath).ToArray(); var connection = await AppServiceConnectionHelper.Instance; if (connection != null) { var value = new ValueSet { { "Arguments", "WallpaperOperation" }, { "wallpaperop", "SetSlideshow" }, { "filepaths", images } }; await connection.SendMessageAsync(value); } } else { WallpaperHelpers.SetAsBackground(WallpaperType.Desktop, SlimContentPage.SelectedItem.ItemPath); } }
public virtual void SetAsLockscreenBackgroundItem(RoutedEventArgs e) { WallpaperHelpers.SetAsBackground(WallpaperType.LockScreen, SlimContentPage.SelectedItem.ItemPath, associatedInstance); }
public virtual void SetAsDesktopBackgroundItem(RoutedEventArgs e) { WallpaperHelpers.SetAsBackground(WallpaperType.Desktop, SlimContentPage.SelectedItem.ItemPath, associatedInstance); }