i am developing a windows 8 metro app in which i am sharing the HTML content from my windows 8 Metro App.
I want to share the HTML content and images at the same time using the share contract in c#/xaml windows 8 metro app
protected override bool GetShareContent(DataRequest request)
{
bool succeeded = false;
DataPackage requestData = request.Data;
requestData.Properties.Title = TitleInputBox.Text;
requestData.Properties.Description = DescriptionInputBox.Text;
//Sharing Images
List<IStorageItem> imageItems = new List<IStorageItem>();
imageItems.Add(this.imageFile);
imageItems.Add(this.imageFile);
imageItems.Add(this.imageFile);
requestData.SetStorageItems(imageItems);
//Sharing HTML Content
requestData.Properties.Title = "A web snippet for you";
requestData.Properties.Description = "HTML selection from a WebView control";
requestData.SetHtmlFormat(HtmlFormatHelper.CreateHtmlFormat("<h1>This
is test</h1><br></br>checking it"));
return succeeded;
}
Here in the above code , if i want to trying to share html content and images at the same time.
but , by default it is taking only the first one (either images or html content which will be placed first) it is not able to share both at the same time.
i am able to share either images or html content at a time but not both ???
1) How can i share Html content and Images at the same time using share contract in windows 8 metro app ??
2)what are the various available ways in which i can share both at same time ??
Looking forward for your response
please let me know