share image (#1039)

This commit is contained in:
Pepe Rivera
2020-02-24 10:27:22 -08:00
committed by GitHub
parent 8483b68f12
commit dab258f3f0

View File

@@ -316,6 +316,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque
auto bitmapStream = GraphingControl->GetGraphBitmapStream();
requestData->ResourceMap->Insert(ref new String(L"graph.png"), bitmapStream);
requestData->SetBitmap(bitmapStream);
// Set the thumbnail image (in case the share target can't handle HTML)
requestData->Properties->Thumbnail = bitmapStream;