Esempio n. 1
0
        private void DataTransferManager_DataRequested(DataTransferManager sender, DataRequestedEventArgs args)
        {
            var request = args.Request;

            request.Data.Properties.Description     = description;
            request.Data.Properties.Title           = title;
            request.Data.Properties.ApplicationName = GetUIString("AppName");
            request.Data.Properties.Thumbnail       = ImageHelpers.CreateThumbnailFromUri(new Uri(thumb));
            request.Data.SetBitmap(RandomAccessStreamReference.CreateFromUri(new Uri(thumb)));
            request.Data.SetStorageItems(new List <StorageFile> {
                tempImageForShare
            });
            request.Data.SetText(EscapeReplace.ToEscape(title) + " \n " + currentUri.ToString());
            shareType = ShareType.System;
        }