I am using DataTransferManager
to implement sharing within my WindowsPhone 8.1 app, it works fine although I have a small annoyance that I haven't been able to sort out.
I am populating request.Data.Properties.Title
but when I share to Messaging, where there is nowhere to put a title, it puts it in the body of the message. Is there a way around this?
I have tried not supplying the Title property, or supplying an empty string, but that stops the share menu displaying at all.
EDIT: here is the code I am using:
private void ShareTextHandler(DataTransferManager sender, DataRequestedEventArgs e)
{
DataRequest request = e.Request;
request.Data.Properties.Title = "Generated Draw";
request.Data.SetText(CreateDraw.formatDrawForSharing(currentDraw));
}